When you're ready to release your Flutter app, APK size matters β especially for users on slow networks or low-end Android devices.
In this guide, I'll show you how to reduce your Flutter APK size using one powerful command:
flutter build apk --release --split-per-abi
π§ Why App Size Matters
Default flutter build apk creates a fat APK that includes binaries for all Android architectures:
- - armeabi-v7a
- - arm64-v8a
- - x86_64 (used mostly by emulators)
That means one giant APK, sometimes 70MB+ in size. π¬
βοΈ The Solution: --split-per-abi
Instead of bundling all architectures into one APK, this flag tells Flutter to generate separate APKs per ABI:
flutter build apk --release --split-per-abi
π Output Files
(Located in build/app/outputs/flutter-apk/):
app-arm64-v8a-release.apk
app-armeabi-v7a-release.apk
app-x86_64-release.apk
These are much smaller than the default fat APK!
π Size Comparison
APK Type Approx Size
Fat APK ~70 MB
armeabi-v7a ~30 MB
arm64-v8a ~34 MB
β Why Use This?
- π Faster app installs
- π± Better experience on low-end devices
- π Improved Play Store install success
- π§© Less storage = more retention
π Official Docs & Resources
π Flutter Docs β Build and release APK
π More Flutter tutorials at TechyCodex
π¬ Wrapping Up
Using --split-per-abi is a must-have trick in your Flutter production workflow. Itβs simple, powerful, and drastically reduces your APK size.
π If you found this helpful, follow TechyCodex for more dev tips, Firebase tricks, and mobile build strategies!
π§ Got questions? Drop them below β Iβd love to help or learn from your experience!
βοΈ Written by Parikshit Verma for TechyCodex
Top comments (0)