How to decrease the apk size?

Hi All!

This is the first time I make apk files for Android. I have made a few for my phone and it’s too big, I think. It’s about 22 MB, while my Assets folder is about 13.5 MB (the biggest folder is Sounds, I don’t know how to decrease their size).

What is another part of the apk? Can I decrease its size?

Thanks!

Hi,

I’ve read somewhere, the Pro version can strip unused dll’s reducing the size… Also be mindful of the size of your textures, they have a great impact on the size.

Regards.

Hi Zimorgh, thanks for the answer!

I don’t have a Pro. In my country it’s very common to crack software, but I don’t want to do that. Free Unity give me everything I need, so …

As for textures - their size is rather ok, don’t need to decrease it. I will try to decrease sounds size.

Hi Maklaud,

I made the experience that using .ogg files (can edit them with Audacity-> free software) can reduce the file size quite a bit.
If you use multiple scenes for your levels that could be another factor that makes your level bigger. Try to use only one game scene and load the level objects dynamically at the beginning of a level (using e.g. xml-files). Or (and I have to make some self-promotion:) ) use the Easy Level Loader (https://www.assetstore.unity3d.com/#/content/13163). With this asset you are abled to mark certain gameobjects as “saveable” and convert them into prefabs. You can then save their position, scale, … into a binary file. In the beginning of a level you can dynamically create the levels. I used the same method in my latest game Kings of Parking 3D (https://play.google.com/store/apps/details?id=de.tiltgames.kingsofparking3d) and managed to reduce the level size from ~400kb to ~10kb,

I hope that helps and best regards,
Matthias