compileSdk and targetSdk Version Mappings
https://apilevels.com/#definitions
This is an overview of all Android versions and their corresponding identifiers for Android developers. Anyone is welcome to open an issue or pull request. Happy developing!
Version | SDK / API level | Codename | Cumulative usage 1 | Year | |
Android 14 DEV | Level 34 |
| Upside Down Cake | — | TBD |
Level 33 |
| Tiramisu 2 | 20.0% | 2022 | |
| |||||
Level 32 Android 12L |
| Snow Cone 2 | 40.8% | ||
Level 31 Android 12 |
| 2021 | |||
| |||||
Level 30 |
| Red Velvet Cake 2 | 61.9% | 2020 | |
Level 29 |
| Quince Tart 2 | 78.5% | 2019 | |
Level 28 |
| Pie | 86.6% | 2018 | |
Level 27 Android 8.1 |
| Oreo | 91.3% | 2017 | |
Level 26 Android 8.0 |
| 92.9% | |||
Level 25 Android 7.1 |
| Nougat | 94.0% | 2016 | |
Level 24 Android 7.0 |
| 96.2% | |||
Level 23 |
| Marshmallow | 97.9% | 2015 | |
Level 22 Android 5.1 |
| Lollipop | 99.1% | 2015 | |
Level 21 Android 5.0 |
| 99.3% | 2014 | ||
| |||||
Android 4 | Level 20 Android 4.4W 3 |
| KitKat | No data | |
Level 19 Android 4.4 |
| 2013 | |||
| |||||
Level 18 Android 4.3 |
| Jelly Bean | |||
Level 17 Android 4.2 |
| 2012 | |||
Level 16 Android 4.1 |
| ||||
Level 15 Android 4.0.3 – 4.0.4 |
| Ice Cream Sandwich | 2011 | ||
Level 14 Android 4.0.1 – 4.0.2 |
| ||||
Android 3 | Level 13 Android 3.2 |
| Honeycomb | ||
Level 12 Android 3.1 |
| ||||
Level 11 Android 3.0 |
| ||||
Android 2 | Level 10 Android 2.3.3 – 2.3.7 |
| Gingerbread | ||
Level 9 Android 2.3.0 – 2.3.2 |
| 2010 | |||
Level 8 Android 2.2 |
| Froyo | |||
Level 7 Android 2.1 |
| Eclair | |||
Level 6 Android 2.0.1 |
| 2009 | |||
Level 5 Android 2.0 |
| ||||
Android 1 | Level 4 Android 1.6 |
| Donut | ||
Level 3 Android 1.5 |
| Cupcake | |||
Level 2 Android 1.1 |
| Petit Four | |||
Level 1 Android 1.0 |
| None | 2008 |
Definitions
Gradle files
Kotlin variable | Groovy variable | Definition |
---|---|---|
|
| The minimum SDK version your app will support, defined in |
|
| The SDK version that your app targets, defined in |
|
| The SDK version that your app compiles against, defined in |
Code files
Variable | Definition |
---|---|
| The SDK version of the Android OS currently running on the user's device. For example, on a device running Android 11, this value will be |
Footnotes
Cumulative usage distribution figures were last updated on May 6, 2023 using data from Statcounter GlobalStats and this script. These figures may have changed significantly since the last update. You may update the figures yourself with a pull request. ↩
The codenames for Android 10 and above in the table are the internal codenames. Beginning with Android 10, Google dropped the usage of codenames publicly. ↩
Android 4.4W is the first Android release for Android Wear. ↩
See also
Last updated