android - INSTALL_FAILED_OLDER_SDK with minSdkVersion lower than device API version -
on brand new install of latest androidstudio running new project template min sdk selection of 15 (ics) trying run on nexus 5 running api 19, install_failed_older_sdk error following output. have made no changes project template has generated, clean first run expect work.
waiting device. target device: lge-nexus_5-{device id} uploading file local path: /home/{my user name}/androidstudioprojects/myapplication/app/build/outputs/apk/app-debug.apk remote path: /data/local/tmp/com.example.{my user name}.myapplication installing com.example.{my user name}.myapplication device shell command: pm install -r "/data/local/tmp/com.example.{my user name}.myapplication" pkg: /data/local/tmp/com.example.{my user name}.myapplication failure [install_failed_older_sdk]
this default build.gradle file generated app
apply plugin: 'com.android.application' android { compilesdkversion 'android-l' buildtoolsversion "20.0.0" defaultconfig { applicationid "com.example.{my user name}.myapplication" minsdkversion 15 targetsdkversion 'l' versioncode 1 versionname "1.0" } buildtypes { release { runproguard false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) }
check doc @ http://developer.android.com/preview/setup-sdk.html.
you have use
minsdkversion 'l'
and have run app in device android-l or emulator android-l. build system when compilesdkversion
'android-l'
or targetsdkversion
'l'
forces minsdk 'l'
prevent apps published api in preview.
Comments
Post a Comment