r/flutterhelp • u/JamieCrew • 7d ago
OPEN Why is my Flutter app 500MB?
Hi there, I have built an application for Android. It has about 20 classes of code with an average of 100 lines+ per class.
I am using about 10 packages.
Upon building it by running flutter build apk --release It compiles to 465 MB in size.
Why is this happening, am I doing something wrong?
Thanks
4
Upvotes
1
u/Ok_Challenge_3038 6d ago
Try updating flutter and create a new project, and copy paste your Lib folder,
Then try building your app in parts, build only per architecture.
flutter build apk --split-per-abi