android - can't test app on my mobile : Failure [INSTALL_FAILED_OLDER_SDK] -


i new android studio , made app not running on physical device htc 1 m8 giving , error failure [install_failed_older_sdk]

htc 1 m8 android version: 5.0.2

android {     compilesdkversion 22     buildtoolsversion "22.0.1"      defaultconfig {         applicationid "com.example.darab.crazy_tip_calc"         minsdkversion 22         targetsdkversion 22         versioncode 1         versionname "1.0"     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     } 

just set minsdkversion 15 instead of 22

android:minsdkversion

an integer designating minimum api level required application run. android system prevent user installing application if system's api level lower value specified in attribute.

android { compilesdkversion 22 buildtoolsversion "22.0.1"  defaultconfig {     applicationid "com.example.darab.crazy_tip_calc"     minsdkversion 15     targetsdkversion 22     versioncode 1     versionname "1.0" } buildtypes {     release {         minifyenabled false         proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'     } } 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -