Failure [INSTALL_FAILED_OLDER_SDK] Android-L -
i'm trying use new cardview android l. updated in sdk manager, keep getting following error:
failure [install_failed_older_sdk]
this build.gradle
file:
apply plugin: 'android' android { compilesdkversion 'android-l' buildtoolsversion '20.0.0' defaultconfig { applicationid "www.thomascbeerten.com.nieuwetests" minsdkversion 8 targetsdkversion 20 versioncode 1 versionname "1.0" } buildtypes { release { runproguard false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { // support libraries compile 'com.android.support:support-v4:19.1.0' compile 'com.android.support:appcompat-v7:19.1.0' compile 'com.android.support:gridlayout-v7:19.1.0' compile 'com.android.support:mediarouter-v7:19.1.0' // compile 'com.android.support:support-v13:19.1.0' compile 'com.android.support:recyclerview-v7:+' }
recently there post here regarding l sdk's incompatibility prior versions of android. i've been digging in aosp repositories quite few hours now, , determined tools behave way because designed treat preview platforms differently. if compile against preview sdk (android-l), build tools lock minsdkversion , targetsdkversion same api level. results in produced application being unable installed on devices running older releases of android, if application isn't doing specific l. make matters worse, new support libs (cardview, recyclerview, palette, etc.) locked l api level, though--according repository names--they should work on api level 7 fine (and do!).
see reddit post here, workaround.
Comments
Post a Comment