安卓工作室"Failed to resolve: com.adobe.creativesdk"



我遵循在线教程来实现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,所以我怎么能解决这个问题?

build.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'
}

您的依赖块中有一个问题。注意,Image Editor UI组件的行应该写成:

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

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

如果在此之后您仍然对依赖项有问题,请参阅此答案

最新更新