Android error No, minSdk(API 19) > deviceSdk(API 1) -


i have set android studio , trying compile first project. project gets compiled when 'choose device' menu opens device , state shown [offline] , compatible gives message android error message android error 'no, minsdk(api 19) > devicesdk(api 1)' mean? how can solve it?

my build.grandle file looks this

    apply plugin: 'com.android.application'  android {     compilesdkversion 21     buildtoolsversion "21.1.2"      defaultconfig {         applicationid "com.yaron.myapplication"         minsdkversion 19         targetsdkversion 21         versioncode 1         versionname "1.0"     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     } }  dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     compile 'com.android.support:appcompat-v7:22.0.0' } 

there few things check.

if go terminal window in android studio , cd path sdk platform tools installed (something c:\android\sdk\platform-tools ) , run following command

adb devices

do have device listed? if not don't have device setup properly, or correct drivers.

on phone make sure have developer options enabled (go settings->about phone , click on build number 7 times or so)

once have enabled go develop options under settings , make sure usb debugging enabled.

if adb devices said "no permission" device connecting, make sure connect mtp device first. implicitly prompt import computer's fingerprint , allow future connections usb debugging well.


Comments