Skip to content
Free tool · No sign-up

Android API levels, and a versionCode calculator

Find the Android version behind a minSdk or targetSdk number, and work out a versionCode from your version name.

Android API levels and the versions they belong to
API levelAndroidNameYear
36Android 16Baklava2025
35Android 15Vanilla Ice Cream2024
34Android 14Upside Down Cake2023
33Android 13Tiramisu2022
32Android 12LSnow Cone v22022
31Android 12Snow Cone2021
30Android 11Red Velvet Cake2020
29Android 10Quince Tart2019
28Android 9Pie2018
27Android 8.1Oreo2017
26Android 8.0Oreo2017
25Android 7.1Nougat2016
24Android 7.0Nougat2016
23Android 6.0Marshmallow2015
22Android 5.1Lollipop2015
21Android 5.0Lollipop2014
19Android 4.4KitKat2013

versionCode calculator

major × 10,000 + minor × 100 + patch

versionCode

21403

versionCode = 21403
versionName = "2.14.3"

minSdk, targetSdk and compileSdk

Three numbers in build.gradle use API levels.

  • minSdk is the oldest Android version the app installs on.
  • targetSdk is the version whose behaviour the app has been tested against. Google Play sets a minimum for new apps and updates and raises it each year.
  • compileSdk is the SDK the code is compiled with. It is usually the newest one.

How versionCode works

versionCode is a whole number that must go up with every upload to Google Play, and the largest value Play accepts is 2,100,000,000. versionName is the text people see. A common scheme is major × 10,000 + minor × 100 + patch, which the calculator uses.

Questions and answers

What Android version is API level 24?

Android 7.0 (Nougat), released in 2016.

What API level is Android 15?

API level 35. Android 16 is API level 36.

Does versionCode have to match versionName?

No. They are independent. versionCode only has to be a whole number higher than the last one you uploaded.

Why did Google Play ask for minSdk 24?

Play's automatic protection needs a minimum SDK of 24 or higher. Raise minSdk, or turn automatic protection off for the app in Play Console.

Build and release from one Mac.

VenelX Studio builds your iOS and Android apps on a Mac you own, shares test builds and releases to the stores, from any browser.

Free sign-up. Paid plans, billed yearly. 14-day money-back guarantee. No per-build or per-minute fees.