Error retrieving parent for item - Android Studio -
after downloading new l sdk , 20 sdk when trying refresh, build, or clean project a
error:error retrieving parent item: no resource found matches given name '@android:textappearance.material.searchresult.subtitle'. error:error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.actionbar.title'. error:error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.actionbar.menu'. error:error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.popupmenu.small'. error:error retrieving parent item: no resource found matches given name '@android:textappearance.material.searchresult.title'. error:error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.actionmode.title'. error:error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.popupmenu.large'. error:error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.popupmenu.large'. error:error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.actionbar.subtitle'. error:error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.actionmode.subtitle'. error:error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.popupmenu.small'. here build.gradle
apply plugin: 'com.android.application' buildscript { repositories { mavencentral() } dependencies { classpath 'com.android.tools.build:gradle:0.12.+' } } repositories { maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } } signingconfigs{ release { ... stuff here ... } } buildtypes { debug { runproguard true proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt' zipalign true debuggable true } release { runproguard true proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt' zipalign true signingconfig signingconfigs.release } } dexoptions { incremental true } } android { compilesdkversion 'android-l' buildtoolsversion '20.0.0' defaultconfig { minsdkversion 14 targetsdkversion 'l' } } dependencies { compile filetree(dir: 'libs', include: '*.jar') ... projects ... compile 'com.android.support:cardview-v7:+' compile 'com.android.support:recyclerview-v7:+' compile 'com.android.support:appcompat-v7:+' } i feel ive tried everything, i'm not sure else try. appreciated.
i upgraded new android studio beta (0.8.0) 0.6.0 canary
turns out had make target , compile version l meant not run app on older sdks. if want app run on sdk 19 , lower have set compile , target version 19 , min sdk whatever version need.
next have adjust imports version compatible sdks have chosen compile for. example if want use v7 support library on sdk 19 must import this: compile compile 'com.android.support:appcompat-v7:20.+'
Comments
Post a Comment