flutter_sound icon indicating copy to clipboard operation
flutter_sound copied to clipboard

[BUG]: apk increased size

Open NaarGes opened this issue 4 years ago • 10 comments

Hello I was using flutter_sound version 2.1.1 and it my apk size was about 39.6 Mb, then by updating flutter_sound package to version 7.6.5+1 my apk size increased to 104 Mb It's not acceptable Is it just the new package size or can I decrease it?

NaarGes avatar Feb 23 '21 09:02 NaarGes

Size increase is a big problem. What causes it?

kanekv avatar Feb 24 '21 20:02 kanekv

Size increase is a big problem. What causes it?

I don't know. what I do know for sure is when I remove flutter_sound dependency from pubspec.yaml and comment out related codes it decreased to 39 Mb, so I guess it's the flutter_sound package

NaarGes avatar Feb 26 '21 18:02 NaarGes

Have you tried using the lite flavour? That one is a lot smaller iirc.

deepbluev7 avatar Mar 01 '21 10:03 deepbluev7

same issue , it was 33MB before adding the package and its 98MB now

Nag112 avatar Mar 17 '21 19:03 Nag112

I would really like to know if there is a solution for this! It seems to be a big problem

MoacirSchmidt avatar Apr 01 '21 01:04 MoacirSchmidt

I couldn't find a solution, so I rollback to the old version

NaarGes avatar Apr 04 '21 20:04 NaarGes

lite version solved this problema for me. Install It, import only packages you need and voilà! App size returned to normal

MoacirSchmidt avatar Apr 05 '21 11:04 MoacirSchmidt

I'm facing similar issues, APK size bump from 26MB to 110MB

liemfs avatar Apr 11 '21 15:04 liemfs

When using the full plugin, my app shot from 37MB to around 120MB. Then we changed it to Lite Version. The Lite version is also bumping the Size. It now sits at around 82MB. Even the lite version is more than doubling the original Size.

image The earlier build was using the older Version of Flutter Sound

Also when aab file is generated, it sits around 38MB with the Lite Version. My Guess is the bundling of files targeting different architecture is causing the issue image

Jemshi101 avatar Aug 18 '21 09:08 Jemshi101

This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.

github-actions[bot] avatar Dec 19 '23 01:12 github-actions[bot]