Flutter Android release builds, app size, and store rollout
flutterandroidaabapkr8obfuscationapp-sizeplay-storecrash-reporting
Research (2026-03) on shipping a Flutter game on Android, plus what Run's own sideloaded APK taught. Signing keys have their own article: Android app signing keys and why losing one is permanent.
Build
- Google Play requires an AAB; APKs are for sideloading. AAB downloads are 30-40% smaller because Play serves per-device splits.
flutter build appbundle --release --obfuscate --split-debug-info=build/symbols/<ver> --tree-shake-icons. R8 (shrinking, obfuscation, resource shrinking) is on by default in release. Keep the symbols to de-obfuscate crash reports.- New Play submissions in 2026 must target SDK 35 (Android 15), which also forces edge-to-edge.
- Sideloaded APKs: don't ship all ABIs in one file. Run's universal APK was 90 MB, about
66 MB of it native libraries for three ABIs. Build only arm + arm64
(
--target-platform android-arm,android-arm64) or--split-per-abi. - Keep versionCode increasing; Run's was pinned at +1 (fine for sideloading, rejected by Play).
App size
| Technique | Savings |
|---|---|
| WAV -> OGG | 75%+ per file |
PNG -> WebP (cwebp -q 80) |
25-35% |
| pngquant | 60-80% |
| ABI splits | ~40% per APK |
| Font subsetting | 80%+ per font |
Inspect with flutter build apk --release --analyze-size. Aim under 40 MB (under 20 MB for |
|
| emerging markets). Delete unreferenced assets: Run carried ~12.5 MB of unused music. |
Testing tracks and rollout
Internal testing (up to 100 testers, available in minutes, no review) -> closed (invite, reviewed) -> open (anyone with the link) -> production with a staged rollout starting at 10-20%. Firebase App Distribution works before a store listing exists.
Crash reporting
Crashlytics (free, needs Firebase; FlutterError.onError =
FirebaseCrashlytics.instance.recordFlutterFatalError; upload symbols for obfuscated builds) or
Sentry (richer performance data and integrations). Both cost about 1% CPU.
In-app review prompts
in_app_review uses the native Play API, which enforces quotas (a few per user per year).
Ask after positive moments (a level clear, a new PB), never mid-game; escalate thresholds
(levels 5, 15, 30); never show your own "do you like us?" dialog first (policy risk); track
requests locally.
Versioning
version: MAJOR.MINOR.PATCH+BUILD in pubspec: major for save-data breaks, minor for content,
patch for fixes; BUILD auto-incremented in CI (--build-number=$CI_PIPELINE_IID). Tag releases
v1.2.3 and deploy from tags. Upload store builds with Fastlane.
Gotchas
- Never lose the keystore (Android app signing keys and why losing one is permanent); Run still ships debug-signed APKs.
- A client that never checks a published
version.jsoncannot tell users to update; see In-app updates for sideloaded Android apps.
See also
- Testing Flutter/Flame games and running them in GitLab CI
- Deploy scripts with rsync (patterns and traps)