D:DocumentsLearnTestingMyApplicationappbuildintermediatesresmergeddebugvaluesvalues.xml
Error:(7) Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
D:DocumentsLearnTestingMyApplicationappsrcmainresvaluesstyles.xml
Error:(4, 5) No resource found that matches the given name: attr 'colorAccent'.
Error:(4, 5) No resource found that matches the given name: attr 'colorPrimary'.
Error:(4, 5) No resource found that matches the given name: attr 'colorPrimaryDark'.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:Androidbuild-tools23.0.3aapt.exe'' finished with non-zero exit value 1
I installed Android Studio 2.1 and was trying to learn Mockito.
However it was not creating the Mock objects because it didn't recognize the @Mock annotation (compile errors).
So I installed Android Support Library 33.0. Then I had 'duplicates' warnings. so I uninstalled the Library. Now I get error: No resource found that matches the given name Theme.AppCompat.Light.DarkActionBar
I updated Android Studio to 2.1.2 but no difference.
Any help appreciated.
Information:Gradle tasks [:app:generateDebugSources, :app:prepareDebugUnitTestDependencies, :app:mockableAndroidJar, :app:compileDebugUnitTestSources]
Observed package id 'add-ons;addon-google_apis-google-23' in inconsistent location 'D:Androidsdk1add-onsaddon-google_apis-google-23' (Expected 'D:Androidadd-onsaddon-google_apis-google-23')
Observed package id 'build-tools;23.0.3' in inconsistent location 'D:Androidsdk1build-tools23.0.3' (Expected 'D:Androidbuild-tools23.0.3')
Already observed package id 'build-tools;23.0.3' in 'D:Androidbuild-tools23.0.3'. Skipping duplicate at 'D:Androidsdk1build-tools23.0.3'
Observed package id 'docs' in inconsistent location 'D:Androidsdk1docs' (Expected 'D:Androiddocs')
Already observed package id 'docs' in 'D:Androiddocs'. Skipping duplicate at 'D:Androidsdk1docs'
Observed package id 'extras;android;m2repository' in inconsistent location 'D:Androidsdk1extrasandroidm2repository' (Expected 'D:Androidextrasandroidm2repository')
Observed package id 'extras;google;m2repository' in inconsistent location 'D:Androidsdk1extrasgooglem2repository' (Expected 'D:Androidextrasgooglem2repository')
Already observed package id 'extras;google;m2repository' in 'D:Androidextrasgooglem2repository'. Skipping duplicate at 'D:Androidsdk1extrasgooglem2repository'
Observed package id 'extras;intel;Hardware_Accelerated_Execution_Manager' in inconsistent location 'D:Androidsdk1extrasintelHardware_Accelerated_Execution_Manager' (Expected 'D:AndroidextrasintelHardware_Accelerated_Execution_Manager')
Already observed package id 'extras;intel;Hardware_Accelerated_Execution_Manager' in 'D:AndroidextrasintelHardware_Accelerated_Execution_Manager'. Skipping duplicate at 'D:Androidsdk1extrasintelHardware_Accelerated_Execution_Manager'
Observed package id 'platform-tools' in inconsistent location 'D:Androidsdk1platform-tools' (Expected 'D:Androidplatform-tools')
Already observed package id 'platform-tools' in 'D:Androidplatform-tools'. Skipping duplicate at 'D:Androidsdk1platform-tools'
Observed package id 'platforms;android-23' in inconsistent location 'D:Androidsdk1platformsandroid-23' (Expected 'D:Androidplatformsandroid-23')
Observed package id 'sources;android-23' in inconsistent location 'D:Androidsdk1sourcesandroid-23' (Expected 'D:Androidsourcesandroid-23')
Observed package id 'system-images;android-23;google_apis;x86' in inconsistent location 'D:Androidsdk1system-imagesandroid-23google_apisx86' (Expected 'D:Androidsystem-imagesandroid-23google_apisx86')
Observed package id 'tools' in inconsistent location 'D:Androidsdk1tools' (Expected 'D:Androidtools')
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:mergeDebugShaders UP-TO-DATE
:app:compileDebugShaders UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources
D:DocumentsLearnTestingMyApplicationappbuildintermediatesresmergeddebugvaluesvalues.xml
Error:(7) Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
D:DocumentsLearnTestingMyApplicationappsrcmainresvaluesstyles.xml
Error:(4, 5) No resource found that matches the given name: attr 'colorAccent'.
Error:(4, 5) No resource found that matches the given name: attr 'colorPrimary'.
Error:(4, 5) No resource found that matches the given name: attr 'colorPrimaryDark'.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:Androidbuild-tools23.0.3aapt.exe'' finished with non-zero exit value 1
Information:BUILD FAILED
Information:Total time: 6.77 secs
Information:5 errors
Information:0 warnings
Information:See complete output in console
My gradle file is here:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "me.com.myapplication"
minSdkVersion 22
targetSdkVersion 23
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:1.10.19'
}
Aucun commentaire:
Enregistrer un commentaire