0

Im building an apk and the size is too large bcz i just created a ui till now and the size is 49mb there is huge differnece .

enter image description here

in this image the upper apk size is 22mb which build is created 7months ago but now i reopen and just created build again the size is 47mb somehow facing this issue in all apps the size is getting larger.

Awais Rehman
  • 574
  • 3
  • 10
  • before running the ``flutter build`` cmd run ``flutter clean`` cmd. You should see the size difference. Also, build app bundle instead of apk – OMi Shah Jul 05 '22 at 03:09
  • https://stackoverflow.com/questions/49064969/flutter-apps-are-too-big-in-size – OMi Shah Jul 05 '22 at 03:10
  • brother if i do new build then also same huge size there isnt in app just simple 10pages ui with less assets – Awais Rehman Jul 05 '22 at 03:12

1 Answers1

0

Try with flutter released apk .

I also came across in this very apk condition when debugging, while in releases around 7-8 mb. This however we could see it in much larger apps, where natively speaking, we need to import many libraries, while with Flutter the work is optimized. So if we assume an app that natively should weigh around 30mb with Flutter it should be similar. What can scare you is in the very basic apps. The important thing however is to optimize the images.

After running flutter build apk --release, my APK size was 16.2 MB. This APK is called FAT APK which is a single APK that contains binaries for multiple ABIs embedded within it and supports multiple architectures. With flutter build apk --split-per-abi, dart code obsfucates resulting in 3 APK files, size of my app.APK was reduced to 5.6 MB.