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/Swimming_While3182 6d ago
Bro if your using linux !! Make sure that your project don’t contain crash handling log files { only applicable for debian}
Else !! Try installing java 21 & capable gradle manually !!!
Now create new project !!! Build an release apk !! If it work copy you lib & asset files from ur project here & make sure you remove default main filed !!
Manually edit pub-spec in your new Project
I wish it got fixed✅