Want to know how to reduce you flutter apk files? Currently the files produced are quite large, usually around 80 mb. This is simply too large for many purposes and it may help you to reduce the file size.
CodePudding user response:
I am just sharing a small tip on how to reduce your apk file size.
Go to: android/app/build.gradle
and then under build types add these lines
buildTypes {
release {
minifyEnabled true
shrinkResources true
signingConfig signingConfigs.release
}
}
CodePudding user response:
Run flutter build apk --split-per-abi
This will build specific apk files for separate cpu architectures for mobile.
By default the apk that runs in emulator has a lot of debug libraries in it which increases the apk size by a huge factor.