D:\Documents\Learn\Testing\MyApplication\app\build\intermediates\res\merged\debug\values\values.xml오류 주어진 이름 Theme.AppCompat.Light.DarkActionBar와 일치하는 리소스를 찾을 수 없습니다. Android Studio 2.1.1 + 지원 라이브러리
Error:(7) Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
Android Studio 2.1을 설치했고 Mockito를 배우려고했습니다.
그러나 @Mock 주석 (컴파일 오류)을 인식하지 못하기 때문에 Mock 객체를 생성하지 못했습니다.
그래서 Android Support Library 33.0을 설치했습니다. 이제 오류가 발생합니다 : 주어진 이름과 일치하는 리소스가 없습니다. Theme.AppCompat.Light.DarkActionBar
Android Studio를 2.1.2로 업데이트했는데 차이점이 없습니다.
도움을 주시면 감사하겠습니다.
Information:Gradle tasks [:app:generateDebugSources, :app:prepareDebugUnitTestDependencies, :app:mockableAndroidJar,
:app:compileDebugUnitTestSources]
: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:\Documents\Learn\Testing\MyApplication\app\build\intermediates\res\merged\debug\values\values.xml
Error:(7) Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
D:\Documents\Learn\Testing\MyApplication\app\src\main\res\values\styles.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:\Android\build-tools\23.0.3\aapt.exe'' finished with non-zero exit value 1
Information:BUILD FAILED
Information:Total time: 6.239 secs
Information:5 errors
Information:0 warnings
Information:See complete output in console
내 Gradle을 파일은 여기에 있습니다 :
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'])
androidTestCompile 'com.android.support.test:runner:0.4'
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:1.10.19'
}
귀하의 gradle 파일을 게시하십시오. –
귀하의 gradle 파일을 게시하십시오. 또한 Android Studio에서 프로젝트를 다시 시도해보십시오. –
죄송합니다. 여기에 첨부 ... – likejiujitsu