尝试实施CreativeSDK时出错

时间:2017-01-17 08:48:23

标签: android adobecreativesdk

我正在尝试根据CreativeSDK指南将依赖项放在build.gradle中。

apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
    applicationId "andMKD.IMGEDIT"
    minSdkVersion 19
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    jackOptions {
        enabled true
    }
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
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'
}

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.0'
testCompile 'junit:junit:4.12'
compile 'com.adobe.creativesdk.foundation:auth:0.9.1062'
compile 'com.adobe.creativesdk:image:4.0.0'
}

但是一旦我同步这个

,我就收到以下错误
  

信息:总时间:11.751秒   信息:Gradle任务[:app:generateDebugSources,:app:mockableAndroidJar,:app:prepareDebugUnitTestDependencies,:app:generateDebugAndroidTestSources]   警告:忽略Android API工件com.google.android:android:2.2.1进行调试   警告:忽略Android API工件com.google.android:android:2.2.1以获取发布   /home/app/build/intermediates/res/merged/debug/values/values.xml   错误:(2352,44)找不到与给定名称匹配的资源(在' android:textColorHint'值为' @ color / hint_foreground_material_light')。   错误:(2352,44)找不到与给定名称匹配的资源(在' android:textColorHint'值为' @ color / hint_foreground_material_light')。   错误:任务':app:processDebugResources'执行失败。   com.android.ide.common.process.ProcessException:无法执行aapt   信息:建筑失败   信息:3个错误   信息:2个警告   信息:请参阅控制台中的完整输出

1 个答案:

答案 0 :(得分:0)

Creative SDK文档说:

  

Creative SDK支持最低的Android API Level 16   minSdkVersion和API Level 24作为最大targetSdkVersion

如果可能的话,尝试将其降级为24,或者尝试this question

中的解决方案
相关问题