0

我按照在线教程来实现 adobe creative sdk 并最终,当我同步我的应用程序时,我得到了这两个错误 Error:(65, 14) Failed to resolve: com.adobe.creativesdk.foundation:auth:0.3.94 <a href="openFile">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

Error:Failed to resolve: com.adobe.creativesdk.image:4.0.0:
<a href="openFile">Open File</a>

做了一些研究,但无法解决这个新问题,以前的问题已解决。我是android新手,所以我该如何解决这个问题?

构建.gradle:

apply plugin: 'com.android.application'

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.2.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

defaultConfig {
    minSdkVersion 10
    targetSdkVersion 20
    versionCode 1
    versionName "1.0"
}
allprojects {
    repositories {
        mavenCentral()
        jcenter()
        mavenLocal()
        maven {
            url "${project.rootDir}/creativesdk-repo/release"
        }
    }
}

android {
    compileSdkVersion 20
    buildToolsVersion "20.0.0"
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }

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

    dexOptions {
        javaMaxHeapSize "4g"
    }

}

dependencies {
    compile 'com.adobe.creativesdk.foundation:auth:0.3.94'
    compile 'com.adobe.creativesdk.image:4.0.0'
}
4

1 回答 1

0

您的依赖项块中存在问题。请注意,图像编辑器 UI 组件的行应写为:

compile 'com.adobe.creativesdk:image:4.0.0'

在单词之前image,应该有一个冒号,而不是句号。

如果在那之后您仍然遇到依赖关系问题,请参阅此答案

于 2015-10-26T21:37:51.880 回答