Bundle dell'app firmato per il rilascio
Crei e firmi un file .aab per la distribuzione
Bundle dell'app firmato per il rilascio è una lezione Jetpack Compose Academy gratuita su CoddyKit. Questa è la lezione 3 di 4. Puoi leggere la lezione completa qui gratuitamente — poi esercitati direttamente nel browser con un editor di codice integrato e un tutor IA disponibile 24/7. Fa parte del percorso di apprendimento Jetpack Compose Academy, e i tuoi progressi si sincronizzano tra il web e l'app CoddyKit. Il corso Jetpack Compose Academy include 4 lezioni in totale.
Parti di questa lezione non sono ancora state tradotte e vengono mostrate in inglese.
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.
Domande Frequenti
La lezione «Bundle dell'app firmato per il rilascio» è gratuita?
Sì — il testo completo di «Bundle dell'app firmato per il rilascio» è gratuito qui sul web. Per esercitarvi in modo interattivo (un editor di codice integrato e un tutor IA 24/7) e sbloccare il resto del corso Jetpack Compose Academy, passa a CoddyKit PRO. Il corso Jetpack Compose Academy include 4 lezioni in totale.
Cosa imparerò in «Bundle dell'app firmato per il rilascio»?
Crei e firmi un file .aab per la distribuzione Eserciti Jetpack Compose Academy con codice pratico che esegui direttamente nel browser, e un tutor IA 24/7 risponde alle tue domande mentre lavori sulla lezione.
Ho bisogno di esperienza per iniziare Jetpack Compose Academy?
Non è richiesta alcuna esperienza precedente. Jetpack Compose Academy su CoddyKit è strutturato per principianti e studenti avanzati, quindi puoi iniziare da qui o dall'inizio e procedere al tuo ritmo. Questa è la lezione 3 di 4.
Quanto tempo richiede la lezione «Bundle dell'app firmato per il rilascio»?
La maggior parte delle lezioni CoddyKit richiede circa 5–10 minuti. Ogni lezione è breve e interattiva, quindi fai progressi costanti e riprendi esattamente da dove hai lasciato su web e app.
Posso scrivere ed eseguire codice in questa lezione Jetpack Compose Academy?
Sì. Ogni lezione Jetpack Compose Academy include un editor di codice integrato, quindi scrivi ed esegui codice reale direttamente nel tuo browser e ricevi feedback istantaneo dall'IA — nessuna configurazione locale necessaria.
Tutte le lezioni di questo corso
- Accessibilità e interfaccia edge-to-edge
- Baseline Profile per un avvio rapido
- Bundle dell'app firmato per il rilascio
- Progetti un'architettura pronta per Compose Multiplatform