解析失败:com.adobe.creativesdk.foundation:auth:0.9.1251

Failed to resolve: com.adobe.creativesdk.foundation:auth:0.9.1251

我在 Android Studio 中找不到 Adob​​e Creative SDK。

我已经从 github 下载示例。

我已经按照说明设置了我的密钥class。

我的gradle申请文件。

apply plugin: 'com.android.application'

apply plugin: 'me.tatarka.retrolambda'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.0"

    defaultConfig {
        applicationId "com.adobe.imageeditorui"
        minSdkVersion 16 // Minimum is 16
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        manifestPlaceholders = [appPackageName: "${applicationId}"]
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    /* 2) Compile for Java 1.8 or greater */
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    /* 3) Exclude duplicate licenses */
    packagingOptions {
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/DEPENDENCIES'
        pickFirst 'AndroidManifest.xml'
    }

    /* 4) Enable jumbo mode */
    dexOptions {
        jumboMode true
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:25.1.0'
    compile 'com.android.support:design:25.1.0'
    compile 'com.adobe.creativesdk.foundation:auth:0.9.1251'
    compile 'com.adobe.creativesdk:image:4.8.4'
    compile "com.localytics.android:library:3.8.0"
}

和主要 gradle 文件:

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

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

        /* 1) Add the Gradle Retrolambda Plugin */
        classpath 'me.tatarka:gradle-retrolambda:3.3.0-beta4'
    }
}

allprojects {
    repositories {
        jcenter()

        /* 2) Add mavenCentral */
        mavenCentral()

        /* 3) Add the Creative SDK Maven repo URL */
        maven {
            url 'https://repo.adobe.com/nexus/content/repositories/releases/'
        }

        maven {
            url 'http://maven.localytics.com/public'
        }


    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

但我在同步以下项目时仍然遇到问题:

-->解析失败:com.adobe.creativesdk.foundation:auth:0.9.1251

-->解析失败:com.adobe.creativesdk:image:4.8.4

你可以使用上面的 aar 库下载 com.adobe.creativesdk.foundation:auth:0.9.1251 link

Link

然后将其放入库文件夹并导入。

从上面 link 下载另一个库,然后再做同样的事情。

Link

希望对您有所帮助。

在您的主应用程序中,gradle 文件中添加:

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

    maven {
        url 'http://maven.localytics.com/public'
    }

    maven{
        url 'https://maven.google.com'
    }

    mavenCentral()
}

您已经包含了两个 Maven 存储库。还要添加 google maven 存储库。这将解决问题。