2016-11-17 5 views
1
나는 안드로이드 응용 프로그램으로 어도비 크리 에이 티브 SDK를 추가하려고

, 나는이 (https://creativesdk.adobe.com/docs/android/#/articles/gettingstarted/index.html) 튜토리얼을 따라,하지만 로그 캣에 오류 쇼 다음 프로젝트를 synic 때 ...는 선언을 찾을 수 없습니다 요소를 '자원'

C:\Users\Muzamil Hussain\AndroidStudioProjects\SwitchApp\app\build\intermediates\res\merged\debug\values\values.xml 
Error:(2599, 44) No resource found that matches the given name (at 'android:textColorHint' with value '@color/hint_foreground_material_light'). 
Error:(2599, 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 
value.xml 파일의 경우

내 Gradle을 응용 프로그램 파일 :

apply plugin: 'com.android.application' 
/* 1) Apply the Gradle Retrolambda Plugin */ 
apply plugin: 'me.tatarka.retrolambda' 


android { 
    compileSdkVersion 24 
    buildToolsVersion '24.0.3' 

    defaultConfig { 
     applicationId "com.example.muzamil_hussain.switchapp" 
     minSdkVersion 16 
     targetSdkVersion 24 
     versionCode 1 
     versionName "1.0" 
     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
     manifestPlaceholders = [appPackageName: "dfc,,,,myapi key........mmmm"] 
    } 
    packagingOptions { 
     exclude 'META-INF/LICENSE' 
     exclude 'META-INF/LICENSE-FIREBASE.txt' 
     exclude 'META-INF/NOTICE' 
    } 

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

    // This is handled for you by the 2.0+ Gradle Plugin 
    aaptOptions { 
     additionalParameters "--no-version-vectors" 
    } 
} 

repositories { 
    mavenCentral() 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    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:24.0.3' 
    testCompile 'junit:junit:4.12' 
    compile 'com.google.firebase:firebase-database:9.8.0' 
    compile 'com.google.firebase:firebase-core:9.8.0' 
    compile 'com.google.firebase:firebase-auth:9.8.0' 
    compile 'com.google.firebase:firebase-storage:9.8.0' 
    compile 'com.google.firebase:firebase-crash:9.8.0' 
    compile 'com.google.firebase:firebase-messaging:9.8.0' 
    compile 'com.facebook.android:facebook-android-sdk:[4,5]' 
    compile 'com.google.android.gms:play-services-appindexing:9.8.0' 
    compile 'com.firebase:firebase-client-android:2.5.2' 
    compile 'com.firebaseui:firebase-ui:0.6.2' 
    compile 'com.squareup.picasso:picasso:2.5.2' 
    compile 'com.squareup.okhttp:okhttp:2.4.0' 
    compile 'com.pkmmte.view:circularimageview:1.1' 
    compile 'com.github.QuadFlask:colorpicker:0.0.12' 
    compile 'com.squareup.okhttp:okhttp-urlconnection:2.7.4' 
    compile 'com.adobe.creativesdk.foundation:auth:0.9.1186' 
    compile 'com.adobe.creativesdk:image:4.6.3' 
    compile 'com.localytics.android:library:3.8.0' 

} 

apply plugin: 'com.google.gms.google-services' 

이 build.gradle (프로젝트 이름)

// Top-level build file where you can add configuration options common to all sub-projects/modules. 

buildscript { 
    repositories { 
     jcenter() 

    } 

    dependencies { 
     classpath 'com.android.tools.build:gradle:2.2.2' 
     classpath 'com.google.gms:google-services:3.0.0' 

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

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

allprojects { 
    repositories { 
     jcenter() 
     maven { url "https://jitpack.io" } 

     /* 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 
} 
+0

appcompat 라이브러리 등을 변경하셨습니까? 이 문제는 한 버전의 SDK에는 있지만 다른 버전에는없는 리소스 때문에 발생할 수 있습니다. – Bali

+0

appcompat 라이브러리를 설정합니다. 24.0.3 –

+0

fileTree (dir : 'libs', include : [ '* .jar']) androidTestCompile ('com.android.support.test.espresso : 에스 프레소 코어 : 2.2.2' 'com.android.support', 모듈 : 'support-annotations' ) 'com.android.support : appcompat-v7:24.0.3' testCompile 'junit : junit : 4.12'을 (를) –

답변

0

안드로이드 지원을 활성화합니다.

파일> 설정> 플러그인으로 이동 한 다음 사용하도록 설정하십시오.