12AppTesting logo12AppTestingClosed Testing Service
HomeAboutHow It WorksPricingBlogFAQContact
Home › Blog › How to Publish a Flutter App on Google Play: Checklist

How to Publish a Flutter App on Google Play: Checklist

Quick answer To publish a Flutter app on Google Play, create an upload keystore, configure release signing in Gradle, set a unique application ID and version in pubspec.yaml, run flutter build appbundle, upload app.aab to a Play Console closed test, finish the store forms and apply for production.
Illustration for the guide: How to Publish a Flutter App on Google Play: Checklist

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.

How do you publish a Flutter app on Google Play?

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.

What should you check before you build?

CheckWhereWhy
Unique application IDandroid/app/build.gradle(.kts), applicationIdFlutter says it identifies your app on Google Play and cannot be changed after upload. Replace the default com.example value.
App nameAndroidManifest.xml, android:labelShows under the icon on phones
Launcher iconres/mipmap folders or the flutter_launcher_icons packageReplace the default Flutter icon
Internet permissionAndroidManifest.xml, uses-permission INTERNETFlutter says the standard template does not include it, and apps that use the network need it in release builds
Versionpubspec.yaml, version: 1.0.0+1Name before the plus sign, version code after it
Privacy policy URLYour websiteNeeded 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.

How do you create the upload keystore?

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.

Back up the keystore: Keep the keystore file and its passwords private, never commit them to a public repository, and store two copies somewhere safe before your first upload.

How do you set up signing in Gradle?

  1. Create android/key.propertiesAdd storePassword, keyPassword, keyAlias (upload) and storeFile with the path to your keystore. On Windows, write the path with double backslashes.
  2. Load it in GradleIn your app-level Gradle file, define and load the keystore properties before the android block.
  3. Add a release signing configCreate a release signingConfig that reads the alias, passwords and file from key.properties.
  4. Use it for release buildsIn buildTypes, point release at the new config instead of the debug one.
  5. Clean and rebuildFlutter says you might need flutter clean after changing the Gradle file, so cached builds do not affect signing.
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.

How do you build the app bundle?

  1. Set the versionEdit the version line in pubspec.yaml, for example 1.0.0+1. Raise the number after the plus sign for every upload.
  2. Open a terminal in the projectRun cd into your project folder.
  3. BuildRun flutter build appbundle. Running flutter build defaults to a release build.
  4. Find the fileThe bundle is at build/app/outputs/bundle/release/app.aab.
  5. Test itFlutter suggests testing the bundle with bundletool offline, or by uploading it to an internal test track or a closed test on 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.

How do you upload it and complete the forms?

  1. Create the app in Play ConsoleEnter the name, language, App or Game, and Free or Paid. Free apps cannot be changed to paid later.
  2. Create a closed testing releaseGo to Testing > Closed testing, create a release, accept Play App Signing and upload app.aab.
  3. Add testersSee how to add testers and how to share the link.
  4. Complete the Dashboard tasksFinish the forms below, then roll out the release.
FormFlutter-specific noteGuide
App accessProvide login details if your app needs sign-inApp access instructions
AdsAdd the Google Mobile Ads plugin only after you plan the setupAdMob ads not showing
Content ratingAnswer for what the app does, not for the frameworkContent rating
Target audienceChildren change the allowed ad settingsTarget audience
Data safetyList every plugin that collects data, not only your own codeData safety form for AdMob apps
Account deletionRequired if your app lets people create accountsAccount deletion requirement
app-ads.txtNeeded for AdMob apps, hosted on your developer websiteapp-ads.txt guide

How do you run the closed test?

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.

  • Recruit 15 or more testers so a few drop-outs do not stop you. How to get 12 testers.
  • Send them how to join a closed test.
  • Fix bugs they report, raise the number after the plus sign in pubspec.yaml and upload a new bundle.
  • Keep notes of the feedback and changes for the production access questionnaire.

Afterwards, follow how to apply for production access.

What are the common Flutter publishing errors?

ProblemLikely causeFix
Upload says the bundle is signed in debug modeRelease build still uses the debug signing configPoint the release buildType at the release signing config, run flutter clean and rebuild
Keystore not found or wrong passwordWrong storeFile path or typo in key.propertiesCheck the path, and double backslashes on Windows
keytool is not recognizedJava is not on your pathRun flutter doctor -v and use the keytool in the folder it shows
Version code already usedSame number after the plus signIncrease it in pubspec.yaml and rebuild
Package name rejected or already takenDefault com.example ID or an ID in useChoose a unique reverse-domain ID before the first upload
App works in debug but has no internet in releaseINTERNET permission missing from the manifestAdd the permission and rebuild
Wrong key for an updateDifferent keystore than the registered upload keyUse the original keystore or request an upload key reset. See Play App Signing

More fixes are in Google Play app rejected: reasons and fixes.

How do you ship updates?

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.

Part of a series: this article is one chapter of Google Play Closed Testing: The Complete Guide. Start there for the full roadmap from setup to production.

Sources

Frequently asked questions

Which command builds a Flutter app for Google Play?

Run flutter build appbundle. The release bundle is created at [project]/build/app/outputs/bundle/release/app.aab, according to the Flutter documentation.

Where does the Flutter version code come from?

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.

Can I change the application ID after publishing?

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.

Should I upload an APK or an app bundle?

Upload an app bundle. The Flutter documentation says the Play Store prefers the app bundle format, and Google requires a bundle for new apps.

Do I need 12 testers for a Flutter app?

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.

What happens if I lose the upload keystore?

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.