Reputation: 109
I've just programmed a simple App for an Android 5.1 device but i was thinking if it is possible to also run it in Android 5.0. As i know i Need to Change the gradle Settings but i am not sure what exactly:
android {
compileSdkVersion 23
buildToolsVersion "24.0.1"
defaultConfig {
applicationId "com.apps.mainUser.firstApp"
minSdkVersion 22
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
Is it enough to Change the minSdkVersion to 21? And is it even possible to run a API 23 (Android 5.1) programmed App on a Android 5.0 device with those settings? Is there any way to "test" the app without any real device?
Upvotes: 0
Views: 165
Reputation: 113
Yes you must change minSdk.I recommend to change minSdkVersion 9 and targetSdkVersion 24
Upvotes: 1
Reputation: 8834
Yes just make minSdkVersion
into 21
and try to run it to emulator whose Android api level is 21
Upvotes: 1