The Android 16 Beta is now available.
Try it out today and let us know what you think!
Configurar o SDK do 12L
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Para desenvolver e testar o app usando as APIs do 12L, é necessário configurar o SDK do 12L.
Siga as instruções desta página para configurar o SDK do Android 12 no Android
Studio e criar e executar o app no 12L.
Instalar o Android Studio
O SDK do 12L inclui mudanças que não são compatíveis com algumas versões anteriores do
Android Studio. Para ter a melhor experiência de desenvolvimento com o SDK do 12L, use
o Android Studio Chipmunk. 2021.2.1 ou uma versão mais recente.
Instalar o Android Studio
Instalar o SDK
No Android Studio, é possível instalar o SDK do 12L desta maneira:
- Clique em Tools > SDK Manager e em Show Package Details.
- Na guia SDK Platforms, expanda a seção Android 12L ("Sv2") e
selecione o pacote Android SDK Platform 32.
- Na guia SDK Tools, expanda a seção Android SDK Build-Tools 34
e selecione a versão mais recente da
32.x.x
.
- Clique em Apply > OK para fazer o download e instalar os pacotes selecionados.
Atualizar a configuração do build do app
Para acessar as APIs 12L e testar a compatibilidade do app com o 12L, abra o
arquivo build.gradle
ou build.gradle.kts
no módulo e atualize a
compileSdkVersion
e a targetSdkVersion
com valores para o 12L:
Groovy
android {
compileSdkVersion "32"
defaultConfig {
targetSdkVersion "32"
}
}
Kotlin
android {
compileSdkVersion("32")
defaultConfig {
targetSdkVersion("32")
}
}
Para saber mais sobre os recursos e as mudanças no 12L, consulte Recursos e
mudanças do 12L.
O conteúdo e os exemplos de código nesta página estão sujeitos às licenças descritas na Licença de conteúdo. Java e OpenJDK são marcas registradas da Oracle e/ou suas afiliadas.
Última atualização 2025-07-27 UTC.
[null,null,["Última atualização 2025-07-27 UTC."],[],[],null,["# Set up the 12L SDK\n\nTo develop with the 12L APIs and test your app, you need to set up the 12L SDK.\nFollow the instructions on this page to set up the Android 12 SDK in Android\nStudio and build and run your app on 12L.\n\nGet Android Studio\n------------------\n\nThe 12L SDK includes changes that are not compatible with some lower versions of\nAndroid Studio. For the best development experience with the 12L SDK, use\nAndroid Studio Chipmunk \\| 2021.2.1 or higher.\n\n[Get Android Studio](/studio)\n\nInstall the SDK\n---------------\n\nWithin Android Studio, you can install the 12L SDK as follows:\n\n1. Click **Tools \\\u003e SDK Manager** , then click **Show Package Details**.\n2. In the **SDK Platforms** tab, expand the **Android 12L (\"Sv2\")** section and select the **Android SDK Platform 32** package.\n3. In the **SDK Tools** tab, expand the **Android SDK Build-Tools 34** section and select the latest `32.x.x` version.\n4. Click **Apply \\\u003e OK** to download and install the selected packages.\n\nUpdate your app's build configuration\n-------------------------------------\n\nTo access 12L APIs and test your app's compatibility with 12L, open your\nmodule-level `build.gradle` or `build.gradle.kts` file, and update the\n`compileSdkVersion` and `targetSdkVersion` with values for 12L: \n\n### Groovy\n\n```groovy\nandroid {\n compileSdkVersion \"32\"\n\n defaultConfig {\n targetSdkVersion \"32\"\n }\n}\n```\n\n### Kotlin\n\n```kotlin\nandroid {\n compileSdkVersion(\"32\")\n\n defaultConfig {\n targetSdkVersion(\"32\")\n }\n}\n```\n\nTo learn more about the features and changes in 12L, see [12L features and\nchanges](/about/versions/12/12L/summary)."]]