How to reduce apk size to its minimum?

Hey guys,

I am really shocked that my very basic arcade game which consists of 1 scene (Resources: 6 js and a player prefab, no textures, no imported assets/ All 256kb) all in 2D is on its Build 47.11 mb large.

I took a view into the actual app and saw that unity packs some sorts of libraries like libunity.so and libmono.so which take around 2/3 of the apk size.

Is it possible to reduce the libraries content or something that is not necessary?

I have also checked the stripping level to micro mscorblib and this reduced the app size to 45.44 mb. Lol not that much.

I am sure that there are apps that are around 5 mb large made with unity.

I think it’s not possible…

I think that is not possible that your project is so heavy for a 2d game. look at the audio and reduce the compression of music

Start a new project and compile it to APK. I think you’ll find it is about 15Mb. 47Mb for a game with just a few assets sounds very large. See how large your Assets folder is.

Tip: In the Project window, right click your scene file and select “export package”. This will open the export window which lists all the files used in your scene. See if there is something there you didn’t mean to include.

You can also reduce the size of sound samples - e.g. 44Mhz samples can be made 22Mhz or less. Music in MP3 format can be reduced to say 160kbps. Check your textures/sprites - if they are massive 2000 pixel wide textures consider how big they are onscreen in pixels on the average device. If reducing textures/sprite remember to look at the quality settings - low quality settings usually halve (or quarter) the texture size - you may want to adjust that.

Edit addition: Also - My current game project, 3D, lots of textures, lots of sound samples, music - is only a 32Mb APK (debug build).

In Player settings, Device Filter, Select ARMv7 only
(In latest unity (2018.1), this can be found as Other Settings, Target Architecture)

Also scroll down, set Stripping level to Use Micro mscorlib

These should reduce the size a bit further

You can decrese max size of your sprites. Click to sprite. You will see max size section on inspector. you can see the size of sprite on preview of sprite. if you decrese maxsize of sprite , you will see size of sprite will decrease.

okey thanks