Android studio Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar' -
i beginner in android studio, have started creating app named hello world in gradle build tab, shows 2 errors. errors face are:
error:(1) error retrieving parent item: no resource found matches given name 'theme.appcompat.light.darkactionbar'.
error:execution failed task ':app:processdebugresources'.> com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command 'e:\program files\android\sdk\build-tools\22.0.1\aapt.exe'' finished non-zero exit value 1
this build.gradle
apply plugin: 'com.android.application' android { compilesdkversion 22 buildtoolsversion '22.0.1' defaultconfig { applicationid "com.example.android.helloworld" minsdkversion 15 targetsdkversion 22 versioncode 1 versionname "1.0" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies {}
what should run program without errors, please me........
theme "theme.appcompat.light.darkactionbar" declared in modul "com.android.support:appcompat-v7"
so need in build.gradle.
dependencies { compile 'com.android.support:appcompat-v7:22.1.1' }
alternativly can use "theme.holo.light.darkactionbar" instead part of newer android versions , not need modul.
"theme.appcompat.xxx" , "com.android.support:appcompat-v7" created allow old android versions android-2.2 user newer features introduced in newer android versions.
Comments
Post a Comment