尝试设置Adobe Creative SDK时无法解析:com.adobe.creativesdk:image:4.0.0

时间:2015-07-06 18:48:34

标签: android aviary

所以我觉得我已经筋疲力尽所有选择试图让它发挥作用并让我疯狂。

我正在尝试实施adobe creative SDK。我非常认真地关注this tutorial,但它仍无法正常工作。

点击与等级等同步时我得到的是以下错误:

Error:(41, 13) Failed to resolve: com.adobe.creativesdk:image:4.0.0
<a href="openFile">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

这是我的build.grade文件:

    apply plugin: 'com.android.application'
apply plugin: 'maven'

repositories {
    mavenCentral()
    jcenter()

    maven {
        url "${project.rootDir}/creativesdk-repo"  //ADD THE CORRECT LOCATION OF THE CREATIVESDK LIBRARY FILES
    }
}

android {
    compileSdkVersion 22
    buildToolsVersion "22.0.1"

    defaultConfig {
        applicationId "editor.test"
        minSdkVersion 14
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }


    packagingOptions {
        exclude 'META-  INF/NOTICE.txt'
        exclude 'META-INF/LICENSE.txt'
    }
}



dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.adobe.creativesdk:image:4.0.0'

}

enter image description here

如果有人可以提供帮助,那将会挽救我的理智。

另外,我已经查看了以下问题但他们也没有工作:

Trying to make an Android Studio Application with Adobe Creative SDK Image Editing, cannot get libraries compiled in gradle

Android Studio Error when adding Adobe Creative SDK

2 个答案:

答案 0 :(得分:4)

我遇到了同样的问题。文档错了。

该行应为:

maven {
    url "${project.rootDir}/creativesdk-repo/release"
}

答案 1 :(得分:2)

最新的Android SDK不再可下载。相反,您需要将URL更改为:

        url 'https://repo.adobe.com/nexus/content/repositories/releases/'

查看Adobe文档以获取更多详细信息。