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!
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!
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