App Bundle de lanzamiento firmado
Compile y firme un archivo .aab para distribuirlo
App Bundle de lanzamiento firmado es una lección gratuita de Jetpack Compose Academy en CoddyKit. Esta es la lección 3 de 4. Puedes leer la lección completa abajo gratuitamente — luego la practicas en el navegador con un editor de código integrado y un tutor de IA 24/7. Forma parte de la ruta de aprendizaje de Jetpack Compose Academy, y tu progreso se sincroniza en la web y la app de CoddyKit. El curso de Jetpack Compose Academy incluye 4 lecciones en total.
Partes de esta lección aún no han sido traducidas y se muestran en inglés.
From Debug to Release
Your debug builds run on your device, but the Play Store needs a release build: optimized, shrunk, and cryptographically signed by you.
AAB, Not APK
The Play Store wants an Android App Bundle (.aab), not an APK. Google generates device-specific APKs from it, so users download only what they need.
What Signing Proves
A signing key proves every update truly comes from you. Android refuses to install an update signed by a different key, which protects your users.
Create an Upload Keystore
You generate a keystore file holding your key. Guard it and its passwords carefully: lose them and you can lock yourself out of updating the app.
keytool -genkey -v \
-keystore upload.jks \
-alias uploadKeep Secrets Out of Git
Never commit passwords. Put them in gradle.properties (gitignored) or environment variables and read them in your build config.
RELEASE_STORE_PASSWORD=...
RELEASE_KEY_ALIAS=uploadConfigure the signingConfig
In build.gradle you declare a signingConfig that points to the keystore and credentials, then attach it to the release build type.
signingConfigs {
create("release") { /* keystore */ }
}Shrink with R8
Turn on minifyEnabled for release. R8 removes unused code and obfuscates names, making your bundle smaller and harder to reverse engineer.
release {
isMinifyEnabled = true
}Build the Bundle
Run the bundleRelease Gradle task. It compiles, shrinks, and signs your app, producing a release .aab ready to upload.
./gradlew bundleReleaseQuick Check
You are packaging your app for the Play Store. Which artifact should you upload?
Let Google Manage Signing
With Play App Signing, Google holds the final app signing key and you keep only an upload key. If your upload key is lost, you can reset it.
Test the Release Build
Before publishing, install the signed build via an internal testing track. R8 can break reflection, so confirm everything works in the optimized variant.
Bump Your versionCode
Every upload needs a higher versionCode than the last. The Play Store rejects duplicates, so increment it on each release before you build.
versionCode = 2
versionName = "1.1"Recap: Ready to Upload
You created a keystore, set up a signingConfig, shrank with R8, and built a signed .aab. Your app is ready for the Play Console.
Preguntas frecuentes
¿La lección «App Bundle de lanzamiento firmado» es gratis?
Sí — el texto completo de «App Bundle de lanzamiento firmado» es gratis para leer aquí en la web. Para practicarla de forma interactiva (editor de código integrado y tutor de IA 24/7) y desbloquear el resto del curso de Jetpack Compose Academy, actualiza a CoddyKit PRO. El curso de Jetpack Compose Academy incluye 4 lecciones en total.
¿Qué aprenderé en «App Bundle de lanzamiento firmado»?
Compile y firme un archivo .aab para distribuirlo Practicas Jetpack Compose Academy con código real que ejecutas directamente en el navegador, y un tutor de IA 24/7 responde tus preguntas mientras trabajas en la lección.
¿Necesito experiencia previa para empezar Jetpack Compose Academy?
No se requiere experiencia previa. Jetpack Compose Academy en CoddyKit está estructurado para principiantes hasta estudiantes avanzados, así que puedes empezar aquí o desde el inicio y avanzar a tu ritmo. Esta es la lección 3 de 4.
¿Cuánto tiempo toma la lección «App Bundle de lanzamiento firmado»?
La mayoría de las lecciones de CoddyKit toman alrededor de 5–10 minutos. Cada una es compacta e interactiva, así que avanzas constantemente y retomas exactamente por donde dejaste en la web y la app.
¿Puedo escribir y ejecutar código en esta lección de Jetpack Compose Academy?
Sí. Cada lección de Jetpack Compose Academy incluye un editor de código integrado, así que escribes y ejecutas código real directamente en tu navegador y obtienes retroalimentación instantánea de IA — sin configuración local necesaria.
Todas las lecciones de este curso
- Accesibilidad e interfaz edge-to-edge
- Baseline Profiles para un inicio rápido
- App Bundle de lanzamiento firmado
- Arquitectura preparada para Compose Multiplatform