Failed to resolve: com.adobe.creativesdk:image:4.0.0 when trying to set up Adobe creative SDK

只愿长相守 提交于 2019-12-13 02:05:18

问题


So I feel like I've exhausted all options to try and get this to work and is driving me f***** crazy.

I'm trying to implement the adobe creative SDK. I have followed this tutorial very attentively but it's still not working.

All I get when clicking sync with grade etc is the following error:

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>

Here's my build.grade file:

    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'

}

If anyone can help, it will save my sanity.

Also, I've looked at the following questions and they didn't work either:

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


回答1:


I ran into the same problem. The documentation is wrong.

The line should be:

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



回答2:


The newest Android SDK is no longer downloadable. Instead, you need to change the URL to:

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

Check Adobe documentation for more details.



来源:https://stackoverflow.com/questions/31253379/failed-to-resolve-com-adobe-creativesdkimage4-0-0-when-trying-to-set-up-adobe

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!