How to Create an AAB File for Google Play (Android Studio)
Step by step: generate a signed Android App Bundle in Android Studio or with Gradle, then upload it to Play Console.
Read the guide →
Flutter makes building an app fast, but the path from flutter run to a live Google Play listing has its own traps: the upload keystore, Gradle signing, the version code and the closed test for new accounts. This checklist follows Flutter's official release guide and adds the Google Play side, with the errors developers hit most often.
To publish a Flutter app on Google Play, create an upload keystore, tell Gradle to sign release builds with it, set a unique application ID and your version in the project, run flutter build appbundle, and upload the resulting app.aab file to a closed test in Google Play Console. Then finish the store forms, run the closed test if your account needs it, and apply for production access.
The Flutter parts below follow the official Flutter Android release guide. The Google Play parts follow Google's Help pages. Flutter updates its guide often, so if a file name differs in your project, such as build.gradle versus build.gradle.kts, follow the guide for your Flutter version.
| Check | Where | Why |
|---|---|---|
| Unique application ID | android/app/build.gradle(.kts), applicationId | Flutter says it identifies your app on Google Play and cannot be changed after upload. Replace the default com.example value. |
| App name | AndroidManifest.xml, android:label | Shows under the icon on phones |
| Launcher icon | res/mipmap folders or the flutter_launcher_icons package | Replace the default Flutter icon |
| Internet permission | AndroidManifest.xml, uses-permission INTERNET | Flutter says the standard template does not include it, and apps that use the network need it in release builds |
| Version | pubspec.yaml, version: 1.0.0+1 | Name before the plus sign, version code after it |
| Privacy policy URL | Your website | Needed for Data safety, and always if you use ads |
R8 code shrinking is on by default in release builds, so test the release build on a real phone, not only debug. Multidex needs no manual setup, because Flutter's supported platforms require Android API 24 or later.
Flutter explains that Android uses two keys. You sign your upload with the upload key, and users download apps signed with the app signing key, which Google manages through Play App Signing. Our guide to Play App Signing explains the split in detail. If you do not have a keystore, Flutter's guide gives this command for macOS or Linux:
keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA \
-storetype JKS -keysize 2048 -validity 10000 -alias upload
If keytool is not on your path, run flutter doctor -v, find the path printed after “Java binary at:”, and use that folder's keytool. On Windows the guide uses a PowerShell version of the same command.
storePassword=[password]
keyPassword=[password]
keyAlias=upload
storeFile=[path to upload-keystore.jks]
Flutter's guide shows the exact Gradle code for both Kotlin and Groovy files. Copy it from the guide for your version instead of from an old blog post, because the file format has changed over the years. For more background see how to create an AAB file for Google Play.
The default bundle contains your Dart code and the Flutter runtime for 32-bit ARM, 64-bit ARM and 64-bit x86. Obfuscating Dart code is optional. If you do it, keep the extra files you need to read stack traces later. Flutter says you can use --build-name and --build-number to override the version from the command line, which is handy in automated builds.
| Form | Flutter-specific note | Guide |
|---|---|---|
| App access | Provide login details if your app needs sign-in | App access instructions |
| Ads | Add the Google Mobile Ads plugin only after you plan the setup | AdMob ads not showing |
| Content rating | Answer for what the app does, not for the framework | Content rating |
| Target audience | Children change the allowed ad settings | Target audience |
| Data safety | List every plugin that collects data, not only your own code | Data safety form for AdMob apps |
| Account deletion | Required if your app lets people create accounts | Account deletion requirement |
| app-ads.txt | Needed for AdMob apps, hosted on your developer website | app-ads.txt guide |
Google requires personal developer accounts created after November 13, 2023 to run a closed test with at least 12 testers who stay opted in for at least 14 days in a row, then apply for production. See the 14-day requirement explained.
Afterwards, follow how to apply for production access.
| Problem | Likely cause | Fix |
|---|---|---|
| Upload says the bundle is signed in debug mode | Release build still uses the debug signing config | Point the release buildType at the release signing config, run flutter clean and rebuild |
| Keystore not found or wrong password | Wrong storeFile path or typo in key.properties | Check the path, and double backslashes on Windows |
| keytool is not recognized | Java is not on your path | Run flutter doctor -v and use the keytool in the folder it shows |
| Version code already used | Same number after the plus sign | Increase it in pubspec.yaml and rebuild |
| Package name rejected or already taken | Default com.example ID or an ID in use | Choose a unique reverse-domain ID before the first upload |
| App works in debug but has no internet in release | INTERNET permission missing from the manifest | Add the permission and rebuild |
| Wrong key for an update | Different keystore than the registered upload key | Use the original keystore or request an upload key reset. See Play App Signing |
More fixes are in Google Play app rejected: reasons and fixes.
Raise the version in pubspec.yaml, rebuild with flutter build appbundle using the same keystore and application ID, and upload the new bundle as a new release. See how to update an app on Google Play and staged rollout explained. If you use another toolkit, compare it with Kodular, App Inventor and Thunkable.
Run flutter build appbundle. The release bundle is created at [project]/build/app/outputs/bundle/release/app.aab, according to the Flutter documentation.
From the version line in pubspec.yaml, for example version: 1.0.0+1. The part before the plus sign becomes the version name and the number after it becomes the version code. You can override them with --build-name and --build-number.
No. Flutter's documentation says that once you upload your app to the Play Store you cannot change the application ID, so choose a unique one before the first upload.
Upload an app bundle. The Flutter documentation says the Play Store prefers the app bundle format, and Google requires a bundle for new apps.
Flutter makes no difference. The requirement depends on your developer account: personal accounts created after November 13, 2023 must run a closed test with at least 12 testers opted in for 14 days in a row.
With Play App Signing, Google says a lost upload key can be reset: create a new key and send a reset request in Play Console. It takes time, so back the keystore up before your first upload.