B. Ben
B. Ben

Reputation: 109

Android 5.1 APP on 5.0 device?

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

Answers (2)

Emre Aslan
Emre Aslan

Reputation: 113

Yes you must change minSdk.I recommend to change minSdkVersion 9 and targetSdkVersion 24

Upvotes: 1

Rahul Khurana
Rahul Khurana

Reputation: 8834

Yes just make minSdkVersion into 21 and try to run it to emulator whose Android api level is 21

Upvotes: 1

Related Questions