Shipping a Flutter app to Google Play is mostly Android configuration plus a few Play Console screens. None of it is hard, but a couple of choices are permanent, so it pays to do them in order. This guide follows the official Flutter and Google Play docs from an unsigned project to a production release.
It covers the build side of the Google Play launch checklist. The iOS version of this guide is publish a Flutter app on the App Store.
1. Fix the permanent identifiers first
Open android/app/build.gradle.kts and look at defaultConfig:
defaultConfig {
applicationId = "com.example.myapp"
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}
The Flutter docs are blunt: “Once you upload your app to the Play Store, you cannot change the Application ID.” Google Play adds that package names “are unique and permanent” and “can’t be deleted or re-used.” Use a reverse domain you control, such as com.yourstudio.habits, not com.example.
If you change applicationId and namespace, also update the package line in MainActivity.kt and move the file to the matching folder.
Flutter sets minSdk and targetSdk from its own defaults, and you usually do not need to touch them. Google Play does enforce a minimum target API level, covered in the Google Play target API level requirement.
2. Set the app name and icon
In android/app/src/main/AndroidManifest.xml, set android:label on the <application> tag to the final app name. If the app talks to the network, add:
<uses-permission android:name="android.permission.INTERNET"/>
For icons, the Flutter docs point to the flutter_launcher_icons package. See Flutter app icons with flutter_launcher_icons.
3. Create an upload keystore
On macOS or Linux:
keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA \
-storetype JKS -keysize 2048 -validity 10000 -alias upload
The docs warn: “keep the keystore file private; don’t check it into public source control!” If keytool is not on your PATH, run flutter doctor -v and use the Java path it prints after “Java binary at:”.
Back up this file and its passwords somewhere safe. If you lose it, there is a recovery path, described in how to reset a lost Google Play upload key, but it is slower than not losing it.
4. Point Gradle at the key
Create android/key.properties:
storePassword=<password>
keyPassword=<password>
keyAlias=upload
storeFile=/Users/<you>/upload-keystore.jks
Keep this file out of source control too. Then in android/app/build.gradle.kts, load it above the android block:
import java.util.Properties
import java.io.FileInputStream
val keystoreProperties = Properties()
val keystorePropertiesFile = rootProject.file("key.properties")
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
}
And add a release signing config inside android:
signingConfigs {
create("release") {
keyAlias = keystoreProperties.getProperty("keyAlias")
keyPassword = keystoreProperties.getProperty("keyPassword")
storeFile = keystoreProperties.getProperty("storeFile")?.let { file(it) }
storePassword = keystoreProperties.getProperty("storePassword")
}
}
buildTypes {
release {
signingConfig = signingConfigs.getByName("release")
}
}
Replace the template’s debug signing line in release. You may need flutter clean after changing Gradle files.
5. Set the version
Versions live in pubspec.yaml:
version: 1.0.0+1
The part before + becomes versionName and the number after it becomes versionCode. You can override both at build time with --build-name and --build-number. Every upload to Play needs a higher build number than the last, so bump it each time.
6. Build the app bundle
flutter build appbundle
flutter build defaults to release mode. The output lands at build/app/outputs/bundle/release/app.aab. The Flutter docs note that R8 code shrinking “is always enabled in release builds.”
You only need flutter build apk --split-per-abi for stores that do not accept bundles. Google Play wants the .aab.
7. Create the app in Play Console
You need a verified developer account first; see how long Google Play takes to verify your identity. Then create the app, choose its package name, and fill in the store listing: an app name of up to 30 characters, a short description of up to 80, and a full description of up to 4,000. You also need a 512 by 512 icon and a 1024 by 500 feature graphic.
Complete the App content declarations, including the data safety form.
8. Upload to a test track first
Google offers internal, closed and open testing tracks plus production. Internal testing allows up to 100 testers and is the quickest way to check that your signed bundle installs from Play.
When you create your first release, Play App Signing is set up for you. If you do nothing, Google generates the app signing key, and the key you signed the bundle with becomes your upload key.
New personal accounts cannot go straight to production. They need a closed test with at least 12 testers opted in for 14 days, then a production access application. See Google Play closed testing to production.
9. Roll out to production
Go to Test and release, then Production, and click Create new release. Add the .aab, write release notes (up to 500 Unicode characters per language, wrapped in tags like <en-US>), then click Next. Fix anything under “Errors summary”; warnings do not block publishing.
For your first release the button reads Start rollout to production. Google notes that “Rollout percentage options are unavailable for a first release.” For later updates you can choose a percentage.
Google says some accounts may see “review times of up to seven days or longer in exceptional cases,” so leave a buffer before any announced launch date.
10. Automate the next one
Once the manual path works, move the keystore into CI secrets and script the build. Flutter CI/CD for the App Store and Play shows a setup. MobileKit’s release-build skill follows the same signing steps, keeping the upload key outside the repo.
Sources read on the day this post was written: Flutter: build and release an Android app, Google Play: prepare and roll out a release, Android Developers: sign your app, Google Play: create and set up your app and Google Play: publish your app.