Change the project API

0

I'm having an application in android studio pretty much done, except that I wanted to switch from API 9 to API 16 (Android 4.0). Can anyone explain? Thank you!

    
asked by anonymous 24.01.2017 / 02:37

1 answer

3

In your build.gradle file within the app module (there are 2 but only one has these lines below) you need to change the minSdkVersion lines from 9 to 16, I usually keep targetSdkVersion to highest, but if you want only 16, you can put it there too.

defaultConfig {
    applicationId "com.yourapp.app"
    minSdkVersion 15
    targetSdkVersion 24
    versionCode Integer.parseInt(AppVersionCode)
    versionName AppVersionName
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

Any questions, just leave a comment but it is very simple.

If you speak English, this link has an article very cool about it

    
24.01.2017 / 04:21