As titled. I’m currently learning to develop 2d platformer game in android. However, the apk size is too big (around 28 MB). The game itself have no audio, have only a little of sprites, and only 2 levels.
The biggest assets you probably have, are textures. Make sure all your sprites and textures are compressed, or if you can, move them to be on 1 single texture that you can just pull from.
And if possible, try cutting out 1 of your scenes. If the 1st one is just a menu, make it a UI overlaying the entire scene, and just pause the game behind it. Unity scenes, even if they’re empty, still take up space.
Here’s my build report & apk size :
——————————————————————————————————————–
Build Report
Uncompressed usage by category (Percentages based on user generated assets only):
Textures 3.1 mb 16.6%
Meshes 0.0 kb 0.0%
Animations 9.8 kb 0.1%
Sounds 0.0 kb 0.0%
Shaders 475.8 kb 2.5%
Other Assets 67.6 kb 0.4%
Levels 258.8 kb 1.4%
Scripts 1.2 mb 6.3%
Included DLLs 13.3 mb 72.0%
File headers 140.8 kb 0.7%
Total User Assets 18.5 mb 100.0%
——————————————————————————————————————–
Apk size : https://ibb.co/PZbXG6Q
——————————————————————————————————————–
And yes, my first scene is just a menu.
This is one of the downsides to using game engines like Unity, App inventor, Unreal, etc.
Without manually installing every package yourself that you will need like is normally done in Android Studio development, you will in essence be providing a full instruction book and library.
So, short answer, you can’t really compress it down to less. Not unless you want to learn to develop apps with a different program from scratch.
But, on the bright side, 28 MB really isn’t that much these days, right?