Android API Levels

There are various API levels in Android OS, and still, new APIs are developed as the development is going on with new features and functions in Android devices. Every new Android version introduces a new change that leads to more secure and high-performance improvements. Introducing a new API level also enhances the user experience of Android overall.

Here, we have listed the various Android APIs with their versions briefly. If you want a detailed illustration of Android APIs and their development features, visit the official Android website. But we are sure you will find here what you are looking for.

What is Android API?

Application program interface (API) is a code for a programmer that they use in their applications. This code or (API) allows you to add specific functionalities to your application. In other words, we can say that APIs are the set of protocols and tools used for building software applications. Here is the list of various Android APIs level:

Android VersionAPI Level / SDKVersion NameVersion CodeYear
Android 13 (Beta)Level 33TiramisuTIRAMISU
Android 12Level 32 (Android 12L)Snow ConeS_V2
Level 31 (Android 12)S2021
Android 11Level 30 (Android 11)Red Velvet CakeR2020
Android 10Level 29 (Android 10)Quince TartQ2019
Android 9Level 28 (Android 9)PieP2018
Android 8Level 27 (Android 8.1)OreoO_MR12017
Level 26 (Android 8.0)O
Android 7Level 25 (Android 7.1)NougatN_MR12016
Level 24 (Android 7.0)N
Android 6Level 23 (Android 6)MarshmallowM2015
Android 5Level 22 (Android 5.1)LollipopLOLLIPOP_MR1
Level 21 (Android 5.0)LOLLIPOP, L2014
Android 4Level 20 (Android 4.4w)KitKatKITKAT_WATCH
Level 19 (Android 4.4)KITKAT2013
Level 18 (Android 4.3)Jelly BeanJELLYBEAN_MR2
Level 17 (Android 4.2)JELLYBEAN_MR12012
Level 16 (Android 4.1)JELLYBEAN
Level 15 (Android 4.0.3 - 4.0.4)Ice Cream SandwichICE_CREAM_SANDWICH_MR12011
Level 14 (Android 4.0.1 - 4.0.2)ICE_CREAM_SANDWICH
Android 3Level 13 (Android 3.2)HoneycombHONEYCOMB_MR2
Level 12 (Android 3.1)HONEYCOMB_MR1
Level 11 (Android 3.0)HONEYCOMB
Android 2Level 10 (Android 2.3.3 - 2.3.7)GingerbreadGINGERBREAD_MR1
Level 9 (Android 2.3.0 - 2.3.2)GINGERBREAD2010
Level 8 (Android 2.2)FroyoFROYO
Level 7 (Android 2.1)EclairECLAIR_MR1
Level 6 (Android 2.0.1)ECLAIR_0_12009
Level 5 (Android 2.0)ECLAIR
Android 1Level 4 (Android 1.6)DonutDONUT
Level 3 (Android 1.5)CupcakeCUPCAKE
Level 2 (Android 1.1)Petit FourBASE_1_1
Level 1 (Android 1.0)NoneBASE2008

The codenames from Android 10 and above are the internal codenames and starting with Android 10, Google removed the usage of codenames publicly.

From the developer's perspective:

From the developer's perspective, an Android API (or API Levels) is an integer value that uniquely recognizes the framework of API revision.

The android platform offers an API that Android applications use to communicate with the underlying Android system. Android framework API consists of the followings points:

  • It is a core set of packages and classes.
  • A collection of XML elements and attributes is declared in a manifest file. It is also used for accessing resources.
  • It also contains the set of permissions the application can request to use device resources and enforcements included in the system.

Definitions

APIs values or levels are used inside the Gradle files with various variables:

Kotlin variableGroovy variableDefinition
minSdkminSdkVersionIt is the minimum SDK version that the app support. It is defined in build.gradle file. For example, if you set the minSdk to 30, an SDK version corresponds to API Level 30 and Android 11. It makes your app run only on devices with Android 8 or higher versions.
targetSdktargetSdkVersionIt is the SDK version that the app targets. It is defined in build.gradle file. It must always be the same as the compileSdk.
compileSdkcompileSdkVersionIt is the SDK version that the app compiles against. Its value is also defined in the build.gradle file. Android Studio software uses this SDK version to build your APKs, which must always be the same as the targetSdk.

How to add API (or API levels) in your application:

Suppose you want to add a new API level to your Android application (using Android Studio Software). In that case, you must navigate to Appearance & Behaviour > System Settings > and Android SDK. Once you are at the Android SDK screen, checkmark the box next to the API levels and their features. After that, click on the "OK" button to apply and make the changes you have done. It will download and install the selected API on the Android Studio Platform, which you can use in your application.

Android API Levels