getting Failure [INSTALL_FAILED_OLDER_SDK] while running my first android app -
i new android , trying run first android app using android studio. app not getting installed in emulator device , getting message.
failure [install_failed_older_sdk]
after searching on net found happens when device has api level lower of minsdkversion. not case here. following build.gradle
apply plugin: 'com.android.application' android { compilesdkversion 'android-l' buildtoolsversion "20" defaultconfig { applicationid "com.example.parikshit.myapp" minsdkversion 14 targetsdkversion 19 versioncode 1 versionname "1.0" } buildtypes { release { runproguard false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:20.+' }
the emulator device nexus 5 kitkat version.i don't know wrong here.
try using:
compilesdkversion 20
and
targetsdkversion 20
Comments
Post a Comment