Project SDK versionssuggest change
An Android application needs to run on all kinds of devices. Each device may have a different version on Android running on it.
Now, each Android version might not support all the features that your app requires, and so while building an app, you need to keep the minimum and maximum Android version in mind.
Parameter | Details |
——— | —–– |
SDK Version |The SDK version for each field is the Android release’s SDK API level integer. For example, Froyo (Android 2.2) corresponds to API level 8. These integers are also defined in
There are four relevant SDK versions in every project:
targetSdkVersionis the latest version of Android that you have tested against.
The framework will use
targetSdkVersion to determine when to enable certain compatibility behaviors. For example, targeting API level 23 or above will opt you in to the runtime permissions model.
minSdkVersionis the minimum version of Android that your application supports. Users running any version of Android older than this version will not be able to install your application or see it in the Play Store.
maxSdkVersionis the maximum version of Android that your application supports. Users running any version of Android newer than this version will not be able to install your application or see it in the Play Store. This should generally not be used as most applications will work on newer versions of Android without any additional effort.
compileSdkVersionis the version of the Android SDK that your application will be compiled with. It should generally be the latest version of Android that has been publicly released. This defines which APIs you can access when writing your code. You cannot call methods introduced in API level 23 if your
compileSdkVersionis set to 22 or lower.