2017-01-17 3 views
1

Я пытаюсь установить зависимости в build.gradle в соответствии с рекомендациями CreativeSDK.Ошибка при попытке реализовать CreativeSDK

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

Но я получаю следующее сообщение об ошибке, как только я синхронизировать этот

Information:Total time: 11.751 secs Information:Gradle tasks [:app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources] Warning:Ignoring Android API artifact com.google.android:android:2.2.1 for debug Warning:Ignoring Android API artifact com.google.android:android:2.2.1 for release /home/app/build/intermediates/res/merged/debug/values/values.xml Error:(2352, 44) No resource found that matches the given name (at 'android:textColorHint' with value '@color/hint_foreground_material_light'). Error:(2352, 44) No resource found that matches the given name (at 'android:textColorHint' with value '@color/hint_foreground_material_light'). Error:Execution failed for task ':app:processDebugResources'. com.android.ide.common.process.ProcessException: Failed to execute aapt Information:BUILD FAILED Information:3 errors Information:2 warnings Information:See complete output in console

+0

, пожалуйста, проверьте, что 'hint_foreground_material_light' является avialable в' color.xml' –

+0

Я попытался поместить его вручную, но он не работает – AzAz

ответ

0

Креативный SDK Docs говорит:

The Creative SDK supports Android API Level 16 as the lowest minSdkVersion, and API Level 24 as the maximum targetSdkVersion

поэтому постарайтесь понизить его до 24 лет, если это возможно, или попробуйте решение от this question

 Смежные вопросы

  • Нет связанных вопросов^_^