Manifest merger failed : uses-sdk:minSdkVersion 10 cannot be smaller than version L declared in library com.android.support:appcompat-v7:21.0.0-rc1 -
got above error after downloading l preview release version in android studio
, when project had minsdkversion
19.
furthermore, when setting mindsdkversion
below:
defaultconfig { .... minsdkversion 'l' .... }
i dozens of errors below, regarding resources appcompat-v7-21
:
/home/user/workspace/project/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.0-rc1/res/values-v21/values.xml error:error retrieving parent item: no resource found matches given name '@android:textappearance.material.searchresult.subtitle'.
so have 2 questions:
- why complain minsdkversion ? presume because appcompat-v7 21 supports l release; why ? also, support l release when going officially released in autumn ? because problem... or temporary restriction in order apps not be pushed play store, specified in google i/o 2014 keynote ?
- why appcompat-v7 21 complain errors, set mindsdkversion l ?
compilesdkversion 'android-l'
boom. done.
last edit: of android 5.0 release, no longer issue, target api level 21 directly.
edit clarity: indeed david_e specified below, solution works l version, if try deploy app on device below l (ex <=4.4.4) complain of old_sdk. in order app work pre-l still need use old v20 support lib + app compat + targetversionsdk , compileversionsdk
dependencies { compile 'com.android.support:appcompat-v7:20.+' compile 'com.android.support:support-v4:20.+' } android { compilesdkversion 20 buildtoolsversion '20' defaultconfig { applicationid "com.example.application" minsdkversion 10 targetsdkversion 20 versioncode 1 versionname "1.0" } }
Comments
Post a Comment