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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -