所以我觉得我已经花光了所有的尝试来使它正常工作,并且让我发疯。
我正在尝试实施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'
}
如果有人可以帮助,它将节省我的理智。
另外,我查看了以下问题,但它们也不起作用:
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
最佳答案
我遇到了同样的问题。该文档是错误的。
该行应为:
maven {
url "${project.rootDir}/creativesdk-repo/release"
}