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.
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?
Unity has a special thread for that. It is called “Project Tiny”.
You can read more about it here: https://blogs.unity3d.com/2018/12/05/project-tiny-preview-package-is-here/