The Android 15 Beta is now available.
Try it out today and let us know what you think!
Set up the 12L SDK
Stay organized with collections
Save and categorize content based on your preferences.
To develop with the 12L APIs and test your app, you need to set up the 12L SDK.
Follow the instructions on this page to set up the Android 12 SDK in Android
Studio and build and run your app on 12L.
Get Android Studio
The 12L SDK includes changes that are not compatible with some lower versions of
Android Studio. For the best development experience with the 12L SDK, use
Android Studio Chipmunk | 2021.2.1 or higher.
Get Android Studio
Install the SDK
Within Android Studio, you can install the 12L SDK as follows:
- Click Tools > SDK Manager, then click Show Package Details.
- In the SDK Platforms tab, expand the Android 12L ("Sv2") section and
select the Android SDK Platform 32 package.
- In the SDK Tools tab, expand the Android SDK Build-Tools 34 section
and select the latest
32.x.x
version.
- Click Apply > OK to download and install the selected packages.
Update your app's build configuration
To access 12L APIs and test your app's compatibility with 12L, open your
module-level build.gradle
or build.gradle.kts
file, and update the
compileSdkVersion
and targetSdkVersion
with values for 12L:
Groovy
android {
compileSdkVersion "32"
defaultConfig {
targetSdkVersion "32"
}
}
Kotlin
android {
compileSdkVersion("32")
defaultConfig {
targetSdkVersion("32")
}
}
To learn more about the features and changes in 12L, see 12L features and
changes.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-09-03 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-03 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-03 UTC."]]