Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# VERSION_CODES

*** ** * ** ***

```
open class VERSION_CODES
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.os.Build.VERSION_CODES](https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#) |

Enumeration of the currently known SDK version codes. These are the values that can be found in `https://developer.android.com/reference/kotlin/android/os/Build.VERSION#SDK:kotlin.String`. Version numbers increment monotonically with each official platform release.

## Summary

| Constants ||
|---|---|
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#BAKLAVA:kotlin.Int` Baklava. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#BASE:kotlin.Int` The original, first, version of Android. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#BASE_1_1:kotlin.Int` First Android update. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#CINNAMON_BUN:kotlin.Int` Cinnamon Bun. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#CUPCAKE:kotlin.Int` C. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#CUR_DEVELOPMENT:kotlin.Int` Magic version number for a current development build, which has not yet turned into an official release. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#DONUT:kotlin.Int` D. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#ECLAIR:kotlin.Int` E. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#ECLAIR_0_1:kotlin.Int` E incremental update. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#ECLAIR_MR1:kotlin.Int` E MR1. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#FROYO:kotlin.Int` F. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#GINGERBREAD:kotlin.Int` G. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#GINGERBREAD_MR1:kotlin.Int` G MR1. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#HONEYCOMB:kotlin.Int` H. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#HONEYCOMB_MR1:kotlin.Int` H MR1. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#HONEYCOMB_MR2:kotlin.Int` H MR2. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#ICE_CREAM_SANDWICH:kotlin.Int` I. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#ICE_CREAM_SANDWICH_MR1:kotlin.Int` I MR1. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#JELLY_BEAN:kotlin.Int` J. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#JELLY_BEAN_MR1:kotlin.Int` J MR1. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#JELLY_BEAN_MR2:kotlin.Int` J MR2. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#KITKAT:kotlin.Int` K. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#KITKAT_WATCH:kotlin.Int` K for watches. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#LOLLIPOP:kotlin.Int` L. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#LOLLIPOP_MR1:kotlin.Int` L MR1. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#M:kotlin.Int` M. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#N:kotlin.Int` N. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#N_MR1:kotlin.Int` N MR1. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#O:kotlin.Int` O. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#O_MR1:kotlin.Int` O MR1. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#P:kotlin.Int` P. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#Q:kotlin.Int` Q. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#R:kotlin.Int` R. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#S:kotlin.Int` S. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#S_V2:kotlin.Int` S V2. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#TIRAMISU:kotlin.Int` Tiramisu. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#UPSIDE_DOWN_CAKE:kotlin.Int` Upside Down Cake. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#VANILLA_ICE_CREAM:kotlin.Int` Vanilla Ice Cream. |

| Public constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#VERSION_CODES()()` <br /> |

## Constants

### BAKLAVA

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val BAKLAVA: Int
```

Baklava.

    Value: 36

### BASE

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val BASE: Int
```

The original, first, version of Android. Yay!

Released publicly as Android 1.0 in September 2008.

    Value: 1

### BASE_1_1

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val BASE_1_1: Int
```

First Android update.

Released publicly as Android 1.1 in February 2009.

    Value: 2

### CINNAMON_BUN

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val CINNAMON_BUN: Int
```

Cinnamon Bun.

    Value: 37

### CUPCAKE

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val CUPCAKE: Int
```

C.

Released publicly as Android 1.5 in April 2009.

    Value: 3

### CUR_DEVELOPMENT

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val CUR_DEVELOPMENT: Int
```

Magic version number for a current development build, which has not yet turned into an official release.

    Value: 10000

### DONUT

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val DONUT: Int
```

D.

Released publicly as Android 1.6 in September 2009.

Applications targeting this or a later release will get these new changes in behavior:

- They must explicitly request the `https://developer.android.com/reference/kotlin/android/Manifest.permission.html#WRITE_EXTERNAL_STORAGE:kotlin.String` permission to be able to modify the contents of the SD card. (Apps targeting earlier versions will always request the permission.)
- They must explicitly request the `https://developer.android.com/reference/kotlin/android/Manifest.permission.html#READ_PHONE_STATE:kotlin.String` permission to be able to be able to retrieve phone state info. (Apps targeting earlier versions will always request the permission.)
- They are assumed to support different screen densities and sizes. (Apps targeting earlier versions are assumed to only support medium density normal size screens unless otherwise indicated). They can still explicitly specify screen support either way with the supports-screens manifest tag.
- `https://developer.android.com/reference/kotlin/android/widget/TabHost.html#` will use the new dark tab background design.

    Value: 4

### ECLAIR

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val ECLAIR: Int
```

E.

Released publicly as Android 2.0 in October 2009.

Applications targeting this or a later release will get these new changes in behavior:

- The `https://developer.android.com/reference/kotlin/android/app/Service.html#onStartCommand(android.content.Intent,%20kotlin.Int,%20kotlin.Int)` function will return the new `https://developer.android.com/reference/kotlin/android/app/Service.html#START_STICKY:kotlin.Int` behavior instead of the old compatibility `https://developer.android.com/reference/kotlin/android/app/Service.html#START_STICKY_COMPATIBILITY:kotlin.Int`.
- The `https://developer.android.com/reference/kotlin/android/app/Activity.html#` class will now execute back key presses on the key up instead of key down, to be able to detect canceled presses from virtual keys.
- The `https://developer.android.com/reference/kotlin/android/widget/TabWidget.html#` class will use a new color scheme for tabs. In the new scheme, the foreground tab has a medium gray background the background tabs have a dark gray background.

    Value: 5

### ECLAIR_0_1

Added in [API level 6](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val ECLAIR_0_1: Int
```

E incremental update.

Released publicly as Android 2.0.1 in December 2009.

    Value: 6

### ECLAIR_MR1

Added in [API level 7](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val ECLAIR_MR1: Int
```

E MR1.

Released publicly as Android 2.1 in January 2010.

    Value: 7

### FROYO

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FROYO: Int
```

F.

Released publicly as Android 2.2 in May 2010.

    Value: 8

### GINGERBREAD

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val GINGERBREAD: Int
```

G.

Released publicly as Android 2.3 in December 2010.

Applications targeting this or a later release will get these new changes in behavior:

- The application's notification icons will be shown on the new dark status bar background, so must be visible in this situation.

    Value: 9

### GINGERBREAD_MR1

Added in [API level 10](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val GINGERBREAD_MR1: Int
```

G MR1.

Released publicly as Android 2.3.3 in February 2011.

    Value: 10

### HONEYCOMB

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val HONEYCOMB: Int
```

H.

Released publicly as Android 3.0 in February 2011.

Applications targeting this or a later release will get these new changes in behavior:

- The default theme for applications is now dark holographic: `https://developer.android.com/reference/kotlin/android/R.style.html#Theme_Holo:kotlin.Int`.
- On large screen devices that do not have a physical menu button, the soft (compatibility) menu is disabled.
- The activity lifecycle has changed slightly as per `https://developer.android.com/reference/kotlin/android/app/Activity.html#`.
- An application will crash if it does not call through to the super implementation of its `https://developer.android.com/reference/kotlin/android/app/Activity.html#onPause()` method.
- When an application requires a permission to access one of its components (activity, receiver, service, provider), this permission is no longer enforced when the application wants to access its own component. This means it can require a permission on a component that it does not itself hold and still access that component.
- `https://developer.android.com/reference/kotlin/android/content/Context.html#getSharedPreferences(kotlin.String,%20kotlin.Int)` will not automatically reload the preferences if they have changed on storage, unless `https://developer.android.com/reference/kotlin/android/content/Context.html#MODE_MULTI_PROCESS:kotlin.Int` is used.
- `https://developer.android.com/reference/kotlin/android/view/ViewGroup.html#setMotionEventSplittingEnabled(kotlin.Boolean)` will default to true.
- `https://developer.android.com/reference/kotlin/android/view/WindowManager.LayoutParams.html#FLAG_SPLIT_TOUCH:kotlin.Int` is enabled by default on windows.
- `https://developer.android.com/reference/kotlin/android/widget/PopupWindow.html#isSplitTouchEnabled()` will return true by default.
- `https://developer.android.com/reference/kotlin/android/widget/GridView.html#` and `https://developer.android.com/reference/kotlin/android/widget/ListView.html#` will use `https://developer.android.com/reference/kotlin/android/view/View.html#setActivated(kotlin.Boolean)` for selected items if they do not implement `https://developer.android.com/reference/kotlin/android/widget/Checkable.html#`.
- `https://developer.android.com/reference/kotlin/android/widget/Scroller.html#` will be constructed with "flywheel" behavior enabled by default.

    Value: 11

### HONEYCOMB_MR1

Added in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val HONEYCOMB_MR1: Int
```

H MR1.

Released publicly as Android 3.1 in May 2011.

    Value: 12

### HONEYCOMB_MR2

Added in [API level 13](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val HONEYCOMB_MR2: Int
```

H MR2.

Released publicly as Android 3.2 in July 2011.

Update to Honeycomb MR1 to support 7 inch tablets, improve screen compatibility mode, etc.

As of this version, applications that don't say whether they support XLARGE screens will be assumed to do so only if they target `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#HONEYCOMB:kotlin.Int` or later; it had been `https://developer.android.com/reference/kotlin/android/os/Build.VERSION_CODES#GINGERBREAD:kotlin.Int` or later. Applications that don't support a screen size at least as large as the current screen will provide the user with a UI to switch them in to screen size compatibility mode.

This version introduces new screen size resource qualifiers based on the screen size in dp: see `https://developer.android.com/reference/kotlin/android/content/res/Configuration.html#screenWidthDp:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/content/res/Configuration.html#screenHeightDp:kotlin.Int`, and `https://developer.android.com/reference/kotlin/android/content/res/Configuration.html#smallestScreenWidthDp:kotlin.Int`. Supplying these in \<supports-screens\> as per `https://developer.android.com/reference/kotlin/android/content/pm/ApplicationInfo.html#requiresSmallestWidthDp:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/content/pm/ApplicationInfo.html#compatibleWidthLimitDp:kotlin.Int`, and `https://developer.android.com/reference/kotlin/android/content/pm/ApplicationInfo.html#largestWidthLimitDp:kotlin.Int` is preferred over the older screen size buckets and for older devices the appropriate buckets will be inferred from them.

Applications targeting this or a later release will get these new changes in behavior:

- New `https://developer.android.com/reference/kotlin/android/content/pm/PackageManager.html#FEATURE_SCREEN_PORTRAIT:kotlin.String` and `https://developer.android.com/reference/kotlin/android/content/pm/PackageManager.html#FEATURE_SCREEN_LANDSCAPE:kotlin.String` features were introduced in this release. Applications that target previous platform versions are assumed to require both portrait and landscape support in the device; when targeting Honeycomb MR1 or greater the application is responsible for specifying any specific orientation it requires.

- `https://developer.android.com/reference/kotlin/android/os/AsyncTask` will use the serial executor by default when calling android.os.AsyncTask#execute.

- `https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#configChanges:kotlin.Int` will have the `https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_SCREEN_SIZE:kotlin.Int` and `https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_SMALLEST_SCREEN_SIZE:kotlin.Int` bits set; these need to be cleared for older applications because some developers have done absolute comparisons against this value instead of correctly masking the bits they are interested in.

    Value: 13

### ICE_CREAM_SANDWICH

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val ICE_CREAM_SANDWICH: Int
```

I.

Released publicly as Android 4.0 in October 2011.

Applications targeting this or a later release will get these new changes in behavior:

- For devices without a dedicated menu key, the software compatibility menu key will not be shown even on phones. By targeting Ice Cream Sandwich or later, your UI must always have its own menu UI affordance if needed, on both tablets and phones. The ActionBar will take care of this for you.
- 2d drawing hardware acceleration is now turned on by default. You can use `https://developer.android.com/reference/kotlin/android/R.attr.html#hardwareAccelerated:kotlin.Int` to turn it off if needed, although this is strongly discouraged since it will result in poor performance on larger screen devices.
- The default theme for applications is now the "device default" theme: `https://developer.android.com/reference/kotlin/android/R.style.html#Theme_DeviceDefault:kotlin.Int`. This may be the holo dark theme or a different dark theme defined by the specific device. The `https://developer.android.com/reference/kotlin/android/R.style.html#Theme_Holo:kotlin.Int` family must not be modified for a device to be considered compatible. Applications that explicitly request a theme from the Holo family will be guaranteed that these themes will not change character within the same platform version. Applications that wish to blend in with the device should use a theme from the `https://developer.android.com/reference/kotlin/android/R.style.html#Theme_DeviceDefault:kotlin.Int` family.
- Managed cursors can now throw an exception if you directly close the cursor yourself without stopping the management of it; previously failures would be silently ignored.
- The fadingEdge attribute on views will be ignored (fading edges is no longer a standard part of the UI). A new requiresFadingEdge attribute allows applications to still force fading edges on for special cases.
- android.content.Context#bindService will not automatically add in `https://developer.android.com/reference/kotlin/android/content/Context.html#BIND_WAIVE_PRIORITY:kotlin.Int`.
- App Widgets will have standard padding automatically added around them, rather than relying on the padding being baked into the widget itself.
- An exception will be thrown if you try to change the type of a window after it has been added to the window manager. Previously this would result in random incorrect behavior.
- `https://developer.android.com/reference/kotlin/android/view/animation/AnimationSet.html#` will parse out the duration, fillBefore, fillAfter, repeatMode, and startOffset XML attributes that are defined.
- `https://developer.android.com/reference/kotlin/android/app/ActionBar.html#setHomeButtonEnabled(kotlin.Boolean)` is false by default.

    Value: 14

### ICE_CREAM_SANDWICH_MR1

Added in [API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val ICE_CREAM_SANDWICH_MR1: Int
```

I MR1.

Released publicly as Android 4.03 in December 2011.

    Value: 15

### JELLY_BEAN

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val JELLY_BEAN: Int
```

J.

Released publicly as Android 4.1 in July 2012.

Applications targeting this or a later release will get these new changes in behavior:

- You must explicitly request the `https://developer.android.com/reference/kotlin/android/Manifest.permission.html#READ_CALL_LOG:kotlin.String` and/or `https://developer.android.com/reference/kotlin/android/Manifest.permission.html#WRITE_CALL_LOG:kotlin.String` permissions; access to the call log is no longer implicitly provided through `https://developer.android.com/reference/kotlin/android/Manifest.permission.html#READ_CONTACTS:kotlin.String` and `https://developer.android.com/reference/kotlin/android/Manifest.permission.html#WRITE_CONTACTS:kotlin.String`.
- `https://developer.android.com/reference/kotlin/android/widget/RemoteViews.html#` will throw an exception if setting an onClick handler for views being generated by a `https://developer.android.com/reference/kotlin/android/widget/RemoteViewsService.html#` for a collection container; previously this just resulted in a warning log message.
- New `https://developer.android.com/reference/kotlin/android/app/ActionBar.html#` policy for embedded tabs: embedded tabs are now always stacked in the action bar when in portrait mode, regardless of the size of the screen.
- `https://developer.android.com/reference/kotlin/android/webkit/WebSettings.html#setAllowFileAccessFromFileURLs(kotlin.Boolean)` and `https://developer.android.com/reference/kotlin/android/webkit/WebSettings.html#setAllowUniversalAccessFromFileURLs(kotlin.Boolean)` default to false.
- Calls to `https://developer.android.com/reference/kotlin/android/content/pm/PackageManager.html#setComponentEnabledSetting(android.content.ComponentName,%20kotlin.Int,%20kotlin.Int)` will now throw an IllegalArgumentException if the given component class name does not exist in the application's manifest.
- `NfcAdapter.setNdefPushMessage`, `NfcAdapter.setNdefPushMessageCallback` and `NfcAdapter.setOnNdefPushCompleteCallback` will throw IllegalStateException if called after the Activity has been destroyed.
- Accessibility services must require the new `https://developer.android.com/reference/kotlin/android/Manifest.permission.html#BIND_ACCESSIBILITY_SERVICE:kotlin.String` permission or they will not be available for use.
- `https://developer.android.com/reference/kotlin/android/accessibilityservice/AccessibilityServiceInfo.html#FLAG_INCLUDE_NOT_IMPORTANT_VIEWS:kotlin.Int` must be set for unimportant views to be included in queries.

    Value: 16

### JELLY_BEAN_MR1

Added in [API level 17](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val JELLY_BEAN_MR1: Int
```

J MR1.

Released publicly as Android 4.2 in November 2012.

Applications targeting this or a later release will get these new changes in behavior:

- Content Providers: The default value of `android:exported` is now `false`. See [the android:exported section](https://developer.android.com/guide/topics/manifest/provider-element.html#exported) in the provider documentation for more details.
- `https://developer.android.com/reference/kotlin/android/view/View.html#getLayoutDirection()` can return different values than `https://developer.android.com/reference/kotlin/android/view/View.html#LAYOUT_DIRECTION_LTR:kotlin.Int` based on the locale etc.
- `https://developer.android.com/reference/kotlin/android/webkit/WebView.html#addJavascriptInterface(kotlin.Any,%20kotlin.String)` requires explicit annotations on methods for them to be accessible from Javascript.

    Value: 17

### JELLY_BEAN_MR2

Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val JELLY_BEAN_MR2: Int
```

J MR2.

Released publicly as Android 4.3 in July 2013.

    Value: 18

### KITKAT

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val KITKAT: Int
```

K.

Released publicly as Android 4.4 in October 2013.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the [Android KitKat overview](https://developer.android.com/reference/kotlin/about/versions/kitkat).

- The default result of `https://developer.android.com/reference/kotlin/android/preference/PreferenceActivity.html#isValidFragment(kotlin.String)` becomes false instead of true.
- In `https://developer.android.com/reference/kotlin/android/webkit/WebView.html#`, apps targeting earlier versions will have JS URLs evaluated directly and any result of the evaluation will not replace the current page content. Apps targetting KITKAT or later that load a JS URL will have the result of that URL replace the content of the current page
- android.app.AlarmManager#set becomes interpreted as an inexact value, to give the system more flexibility in scheduling alarms.
- `https://developer.android.com/reference/kotlin/android/content/Context.html#getSharedPreferences(kotlin.String,%20kotlin.Int)` no longer allows a null name.
- `https://developer.android.com/reference/kotlin/android/widget/RelativeLayout.html#` changes to compute wrapped content margins correctly.
- `https://developer.android.com/reference/kotlin/android/app/ActionBar.html#`'s window content overlay is allowed to be drawn.
- The `https://developer.android.com/reference/kotlin/android/Manifest.permission.html#READ_EXTERNAL_STORAGE:kotlin.String` permission is now always enforced.
- Access to package-specific external storage directories belonging to the calling app no longer requires the `https://developer.android.com/reference/kotlin/android/Manifest.permission.html#READ_EXTERNAL_STORAGE:kotlin.String` or `https://developer.android.com/reference/kotlin/android/Manifest.permission.html#WRITE_EXTERNAL_STORAGE:kotlin.String` permissions.

    Value: 19

### KITKAT_WATCH

Added in [API level 20](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val KITKAT_WATCH: Int
```

K for watches.

Released publicly as Android 4.4W in June 2014.

Applications targeting this or a later release will get these new changes in behavior:

- `https://developer.android.com/reference/kotlin/android/app/AlertDialog.html#` might not have a default background if the theme does not specify one.

    Value: 20

### LOLLIPOP

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val LOLLIPOP: Int
```

L.

Released publicly as Android 5.0 in November 2014.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the [Android Lollipop overview](https://developer.android.com/reference/kotlin/about/versions/lollipop).

- android.content.Context#bindService now requires an explicit Intent, and will throw an exception if given an implicit Intent.
- `https://developer.android.com/reference/kotlin/android/app/Notification.Builder.html#` will not have the colors of their various notification elements adjusted to better match the new material design look.
- `https://developer.android.com/reference/kotlin/android/os/Message` will validate that a message is not currently in use when it is recycled.
- Hardware accelerated drawing in windows will be enabled automatically in most places.
- `https://developer.android.com/reference/kotlin/android/widget/Spinner.html#` throws an exception if attaching an adapter with more than one item type.
- If the app is a launcher, the launcher will be available to the user even when they are using corporate profiles (which requires that the app use `https://developer.android.com/reference/kotlin/android/content/pm/LauncherApps.html#` to correctly populate its apps UI).
- Calling android.app.Service#stopForeground with removeNotification false will modify the still posted notification so that it is no longer forced to be ongoing.
- A `https://developer.android.com/reference/kotlin/android/service/dreams/DreamService.html#` must require the `https://developer.android.com/reference/kotlin/android/Manifest.permission.html#BIND_DREAM_SERVICE:kotlin.String` permission to be usable.

    Value: 21

### LOLLIPOP_MR1

Added in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val LOLLIPOP_MR1: Int
```

L MR1.

Released publicly as Android 5.1 in March 2015.

For more information about this release, see the [Android 5.1 APIs](https://developer.android.com/reference/kotlin/about/versions/android-5.1).

    Value: 22

### M

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val M: Int
```

M.

Released publicly as Android 6.0 in October 2015.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the [Android 6.0 Marshmallow overview](https://developer.android.com/reference/kotlin/about/versions/marshmallow).

- Runtime permissions. Dangerous permissions are no longer granted at install time, but must be requested by the application at runtime through android.app.Activity#requestPermissions.
- Bluetooth and Wi-Fi scanning now requires holding the location permission.
- `https://developer.android.com/reference/kotlin/android/app/AlarmManager.html#setTimeZone(kotlin.String)` will fail if the given timezone is non-Olson.
- Activity transitions will only return shared elements mapped in the returned view hierarchy back to the calling activity.
- `https://developer.android.com/reference/kotlin/android/view/View.html#` allows a number of behaviors that may break existing apps: Canvas throws an exception if restore() is called too many times, widgets may return a hint size when returning UNSPECIFIED measure specs, and it will respect the attributes `https://developer.android.com/reference/kotlin/android/R.attr.html#foreground:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/R.attr.html#foregroundGravity:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/R.attr.html#foregroundTint:kotlin.Int`, and `https://developer.android.com/reference/kotlin/android/R.attr.html#foregroundTintMode:kotlin.Int`.
- `https://developer.android.com/reference/kotlin/android/view/MotionEvent.html#getButtonState()` will no longer report `https://developer.android.com/reference/kotlin/android/view/MotionEvent.html#BUTTON_PRIMARY:kotlin.Int` and `https://developer.android.com/reference/kotlin/android/view/MotionEvent.html#BUTTON_SECONDARY:kotlin.Int` as synonyms for `https://developer.android.com/reference/kotlin/android/view/MotionEvent.html#BUTTON_STYLUS_PRIMARY:kotlin.Int` and `https://developer.android.com/reference/kotlin/android/view/MotionEvent.html#BUTTON_STYLUS_SECONDARY:kotlin.Int`.
- `https://developer.android.com/reference/kotlin/android/widget/ScrollView.html#` now respects the layout param margins when measuring.

    Value: 23

### N

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val N: Int
```

N.

Released publicly as Android 7.0 in August 2016.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the [Android Nougat overview](https://developer.android.com/reference/kotlin/about/versions/nougat).

- `https://developer.android.com/reference/kotlin/android/app/DownloadManager.Request.html#setAllowedNetworkTypes(kotlin.Int)` will disable "allow over metered" when specifying only `https://developer.android.com/reference/kotlin/android/app/DownloadManager.Request.html#NETWORK_WIFI:kotlin.Int`.
- `https://developer.android.com/reference/kotlin/android/app/DownloadManager.html#` no longer allows access to raw file paths.
- `https://developer.android.com/reference/kotlin/android/app/Notification.Builder.html#setShowWhen(kotlin.Boolean)` must be called explicitly to have the time shown, and various other changes in `https://developer.android.com/reference/kotlin/android/app/Notification.Builder.html#` to how notifications are shown.
- `https://developer.android.com/reference/kotlin/android/content/Context.html#MODE_WORLD_READABLE:kotlin.Int` and `https://developer.android.com/reference/kotlin/android/content/Context.html#MODE_WORLD_WRITEABLE:kotlin.Int` are no longer supported.
- `https://developer.android.com/reference/kotlin/android/os/FileUriExposedException` will be thrown to applications.
- Applications will see global drag and drops as per `https://developer.android.com/reference/kotlin/android/view/View.html#DRAG_FLAG_GLOBAL:kotlin.Int`.
- `https://developer.android.com/reference/kotlin/android/webkit/WebView.html#evaluateJavascript(kotlin.String,%20android.webkit.ValueCallback)` will not persist state from an empty WebView.
- `https://developer.android.com/reference/kotlin/android/animation/AnimatorSet.html#` will not ignore calls to end() before start().
- `https://developer.android.com/reference/kotlin/android/app/AlarmManager.html#cancel(android.app.PendingIntent)` will throw a NullPointerException if given a null operation.
- `https://developer.android.com/reference/kotlin/android/app/FragmentManager.html#` will ensure fragments have been created before being placed on the back stack.
- `https://developer.android.com/reference/kotlin/android/app/FragmentManager.html#` restores fragments in `https://developer.android.com/reference/kotlin/android/app/Fragment.html#onCreate(android.os.Bundle)` rather than after the method returns.
- `https://developer.android.com/reference/kotlin/android/R.attr.html#resizeableActivity:kotlin.Int` defaults to true.
- `https://developer.android.com/reference/kotlin/android/graphics/drawable/AnimatedVectorDrawable.html#` throws exceptions when opening invalid VectorDrawable animations.
- `https://developer.android.com/reference/kotlin/android/view/ViewGroup.MarginLayoutParams.html#` will no longer be dropped when converting between some types of layout params (such as `https://developer.android.com/reference/kotlin/android/widget/LinearLayout.LayoutParams.html#` to `https://developer.android.com/reference/kotlin/android/widget/RelativeLayout.LayoutParams.html#`).
- Your application processes will not be killed when the device density changes.
- Drag and drop. After a view receives the `https://developer.android.com/reference/kotlin/android/view/DragEvent.html#ACTION_DRAG_ENTERED:kotlin.Int` event, when the drag shadow moves into a descendant view that can accept the data, the view receives the `https://developer.android.com/reference/kotlin/android/view/DragEvent.html#ACTION_DRAG_EXITED:kotlin.Int` event and won't receive `https://developer.android.com/reference/kotlin/android/view/DragEvent.html#ACTION_DRAG_LOCATION:kotlin.Int` and `https://developer.android.com/reference/kotlin/android/view/DragEvent.html#ACTION_DROP:kotlin.Int` events while the drag shadow is within that descendant view, even if the descendant view returns `false` from its handler for these events.

    Value: 24

### N_MR1

Added in [API level 25](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val N_MR1: Int
```

N MR1.

Released publicly as Android 7.1 in October 2016.

For more information about this release, see [Android 7.1 for Developers](https://developer.android.com/reference/kotlin/about/versions/nougat/android-7.1).

    Value: 25

### O

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val O: Int
```

O.

Released publicly as Android 8.0 in August 2017.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the [Android Oreo overview](https://developer.android.com/reference/kotlin/about/versions/oreo).

- [Background execution limits](https://developer.android.com/about/versions/oreo/background.html) are applied to the application.
- The behavior of AccountManager's `https://developer.android.com/reference/kotlin/android/accounts/AccountManager.html#getAccountsByType(kotlin.String)`, `https://developer.android.com/reference/kotlin/android/accounts/AccountManager.html#getAccountsByTypeAndFeatures(kotlin.String,%20kotlin.Array,%20android.accounts.AccountManagerCallback,%20android.os.Handler)`, and `https://developer.android.com/reference/kotlin/android/accounts/AccountManager.html#hasFeatures(android.accounts.Account,%20kotlin.Array,%20android.accounts.AccountManagerCallback,%20android.os.Handler)` has changed as documented there.
- `https://developer.android.com/reference/kotlin/android/app/ActivityManager.RunningAppProcessInfo.html#IMPORTANCE_PERCEPTIBLE_PRE_26:kotlin.Int` is now returned as `https://developer.android.com/reference/kotlin/android/app/ActivityManager.RunningAppProcessInfo.html#IMPORTANCE_PERCEPTIBLE:kotlin.Int`.
- The `https://developer.android.com/reference/kotlin/android/app/NotificationManager.html#` now requires the use of notification channels.
- Changes to the strict mode that are set in `https://developer.android.com/reference/kotlin/android/app/Application.html#onCreate()` will no longer be clobbered after that function returns.
- A shared library apk with native code will have that native code included in the library path of its clients.
- `https://developer.android.com/reference/kotlin/android/content/Context.html#getSharedPreferences(kotlin.String,%20kotlin.Int)` in credential encrypted storage will throw an exception before the user is unlocked.
- Attempting to retrieve a android.content.Context#FINGERPRINT_SERVICE on a device that does not support that feature will now throw a runtime exception.
- `https://developer.android.com/reference/kotlin/android/app/Fragment.html#` will stop any active view animations when the fragment is stopped.
- Some compatibility code in Resources that attempts to use the default Theme the app may be using will be turned off, requiring the app to explicitly request resources with the right theme.
- android.content.ContentResolver#notifyChange and `https://developer.android.com/reference/kotlin/android/content/ContentResolver.html#registerContentObserver(android.net.Uri,%20kotlin.Boolean,%20android.database.ContentObserver)` will throw a SecurityException if the caller does not have permission to access the provider (or the provider doesn't exit); otherwise the call will be silently ignored.
- android.hardware.camera2.CameraDevice#createCaptureRequest will enable `https://developer.android.com/reference/kotlin/android/hardware/camera2/CaptureRequest.html#CONTROL_ENABLE_ZSL:android.hardware.camera2.CaptureRequest.Key` by default for still image capture.
- WallpaperManager's `https://developer.android.com/reference/kotlin/android/app/WallpaperManager.html#getWallpaperFile(kotlin.Int)`, android.app.WallpaperManager#getDrawable, android.app.WallpaperManager#getFastDrawable, android.app.WallpaperManager#peekDrawable, and android.app.WallpaperManager#peekFastDrawable will throw an exception if you can not access the wallpaper.
- The behavior of android.hardware.usb.UsbDeviceConnection#requestWait is modified as per the documentation there.
- `https://developer.android.com/reference/kotlin/android/os/StrictMode.VmPolicy.Builder#detectAll()` will also enable `https://developer.android.com/reference/kotlin/android/os/StrictMode.VmPolicy.Builder#detectContentUriWithoutPermission()` and `https://developer.android.com/reference/kotlin/android/os/StrictMode.VmPolicy.Builder#detectUntaggedSockets()`.
- `https://developer.android.com/reference/kotlin/android/os/StrictMode.ThreadPolicy.Builder#detectAll()` will also enable `https://developer.android.com/reference/kotlin/android/os/StrictMode.ThreadPolicy.Builder#detectUnbufferedIo()`.
- `https://developer.android.com/reference/kotlin/android/provider/DocumentsContract.html#`'s various methods will throw failure exceptions back to the caller instead of returning null.
- `https://developer.android.com/reference/kotlin/android/view/View.html#hasFocusable()` now includes auto-focusable views.
- `https://developer.android.com/reference/kotlin/android/view/SurfaceView.html#` will no longer always change the underlying Surface object when something about it changes; apps need to look at the current state of the object to determine which things they are interested in have changed.
- `https://developer.android.com/reference/kotlin/android/view/WindowManager.LayoutParams.html#TYPE_APPLICATION_OVERLAY:kotlin.Int` must be used for overlay windows, other system overlay window types are not allowed.
- `https://developer.android.com/reference/kotlin/android/view/ViewTreeObserver.html#addOnDrawListener(android.view.ViewTreeObserver.OnDrawListener)` will throw an exception if called from within onDraw.
- `https://developer.android.com/reference/kotlin/android/graphics/Canvas.html#setBitmap(android.graphics.Bitmap)` will no longer preserve the current matrix and clip stack of the canvas.
- `https://developer.android.com/reference/kotlin/android/widget/ListPopupWindow.html#setHeight(kotlin.Int)` will throw an exception if a negative height is supplied.
- `https://developer.android.com/reference/kotlin/android/widget/TextView.html#` will use internationalized input for numbers, dates, and times.
- `https://developer.android.com/reference/kotlin/android/widget/Toast.html#` must be used for showing toast windows; the toast window type can not be directly used.
- `https://developer.android.com/reference/kotlin/android/net/wifi/WifiManager.html#getConnectionInfo()` requires that the caller hold the location permission to return BSSID/SSID
- `https://developer.android.com/reference/kotlin/android/net/wifi/p2p/WifiP2pManager.html#requestPeers(android.net.wifi.p2p.WifiP2pManager.Channel,%20android.net.wifi.p2p.WifiP2pManager.PeerListListener)` requires the caller hold the location permission.
- `https://developer.android.com/reference/kotlin/android/R.attr.html#maxAspectRatio:kotlin.Int` defaults to 0, meaning there is no restriction on the app's maximum aspect ratio (so it can be stretched to fill larger screens).
- `https://developer.android.com/reference/kotlin/android/R.attr.html#focusable:kotlin.Int` defaults to a new state (`auto`) where it will inherit the value of `https://developer.android.com/reference/kotlin/android/R.attr.html#clickable:kotlin.Int` unless explicitly overridden.
- A default theme-appropriate focus-state highlight will be supplied to all Views which don't provide a focus-state drawable themselves. This can be disabled by setting `https://developer.android.com/reference/kotlin/android/R.attr.html#defaultFocusHighlightEnabled:kotlin.Int` to false.

    Value: 26

### O_MR1

Added in [API level 27](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val O_MR1: Int
```

O MR1.

Released publicly as Android 8.1 in December 2017.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see [Android 8.1 features and APIs](https://developer.android.com/reference/kotlin/about/versions/oreo/android-8.1).

- Apps exporting and linking to apk shared libraries must explicitly enumerate all signing certificates in a consistent order.
- `https://developer.android.com/reference/kotlin/android/R.attr.html#screenOrientation:kotlin.Int` can not be used to request a fixed orientation if the associated activity is not fullscreen and opaque.

    Value: 27

### P

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val P: Int
```

P.

Released publicly as Android 9 in August 2018.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the [Android 9 Pie overview](https://developer.android.com/reference/kotlin/about/versions/pie).

- android.app.Service#startForeground requires that apps hold the permission `https://developer.android.com/reference/kotlin/android/Manifest.permission.html#FOREGROUND_SERVICE:kotlin.String`.
- `https://developer.android.com/reference/kotlin/android/widget/LinearLayout.html#` will always remeasure weighted children, even if there is no excess space.

    Value: 28

### Q

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val Q: Int
```

Q.

Released publicly as Android 10 in September 2019.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the [Android 10 overview](https://developer.android.com/reference/kotlin/about/versions/10).

- [Behavior changes: all apps](https://developer.android.com/reference/kotlin/about/versions/10/behavior-changes-all)
- [Behavior changes: apps targeting API 29+](https://developer.android.com/reference/kotlin/about/versions/10/behavior-changes-10)

    Value: 29

### R

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val R: Int
```

R.

Released publicly as Android 11 in September 2020.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the [Android 11 overview](https://developer.android.com/reference/kotlin/about/versions/11).

- [Behavior changes: all apps](https://developer.android.com/reference/kotlin/about/versions/11/behavior-changes-all)
- [Behavior changes: Apps targeting Android 11](https://developer.android.com/reference/kotlin/about/versions/11/behavior-changes-11)
- [Updates to non-SDK interface restrictions in Android 11](https://developer.android.com/reference/kotlin/about/versions/11/non-sdk-11)

    Value: 30

### S

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val S: Int
```

S.

    Value: 31

### S_V2

Added in [API level 32](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val S_V2: Int
```

S V2. Once more unto the breach, dear friends, once more.

    Value: 32

### TIRAMISU

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val TIRAMISU: Int
```

Tiramisu.

    Value: 33

### UPSIDE_DOWN_CAKE

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val UPSIDE_DOWN_CAKE: Int
```

Upside Down Cake.

    Value: 34

### VANILLA_ICE_CREAM

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val VANILLA_ICE_CREAM: Int
```

Vanilla Ice Cream.

    Value: 35

## Public constructors

### VERSION_CODES

```
VERSION_CODES()
```