# Android Set up targetSdkVersion
- targetSdkVersion Is used to specify the target Android version (API level) of the application, setting targetSdkVersion The value of the App Adapted Android version (API level), set the lower version of the targetSdkVersion Will make APP Compatibility mode operation, it may not be able to use the characteristics of the new system, and even run in compatibility mode may have security vulnerabilities and other issues, so developers need to be cautious about setting.
# Be careful
1, multi-application in the developer tools default targetSdkVersion The default value is And the minimum values that can be set are 29 (i.e. the developer can set the 29 The value ofSome application markets will require a higher set of targetSdkVersion Before submission, developers submit the application market review in accordance with the application market requirements set)
- When App Upgrades targetSdkVersion Can only increase and not decrease, which means targetSdkVersion The high app cannot be targetSdkVersion Low App Coverage Installation
3、targetSdkVersion A value of Number Must be a positive integer in the range referred to in the Android In the version list API Grade
# targetSdkVersion Configuration Guidelines
- Upgrade Developer Tools to the latest nightly edition, go to multiterminal mode and click
project.miniapp.json
, can be referred to the figure below targetSdkVersion To configure - Added: Rebuild after configuration APK To take effect
# List of API levels corresponding to Android versions
- More details can be found on the official websitehttps://developer.android.com/Guide/topics/manifest/uses-sdk-element?hl=zh-cn
Platform version | API level |
---|---|
[Android 14](https://developer.android.com/about/versions/14? hl=zh-cn ) | 34 |
[Android 13](https://developer.android.com/about/versions/13? hl=zh-cn ) | 33 |
[Android 12](https://developer.android.com/about/versions/12? hl=zh-cn ) | 32 |
[Android 12](https://developer.android.com/about/versions/12? hl=zh-cn ) | 31 |
[Android 11](https://developer.android.com/about/versions/11? hl=zh-cn ) | 30 |
[Android 10](https://developer.android.com/about/versions/10? hl=zh-cn ) | 29 |
[Android 9](https://developer.android.com/about/versions/Pie? hl=zh-cn ) | 28 |
Android 8.1 | 27 |
[Android 8.0](https://developer.android.com/about/versions/Oreo? hl=zh-cn ) | 26 |
Android 7.1.1、7.1 | 25 |
Android 7.0 | 24 |
Android 6.0 | 23 |
Android 5.1 | 22 |
Android 5.0 | 21 |
Android 4.4 | 19 |
Android 4.3 | 18 |
Android 4.2、4.2.2 | 17 |
Android 4.1、4.1.1 | 16 |
Android 4.0.3、4.0.4 | 15 |
Android 4.0、4.0.1、4.0.2 | 14 |
Android 3.2 | 13 |
Android 3.1.x | 12 |
Android 3.0.x | 11 |
Android 2.3.4、2.3.3 | 10 |
Android 2.3.2、2.3.1、2.3 | 9 |
Android 2.2.x | 8 |
Android 2.1.x | 7 |
Android 2.0.1 | 6 |
Android 2.0 | 5 |
Android 1.6 | 4 |
Android 1.5 | 3 |
Android 1.1 | 2 |
Android 1.0 | 1 |