S
S
Sergey Panov2018-08-04 19:24:37
Unity
Sergey Panov, 2018-08-04 19:24:37

How to reduce APK file size?

Good day, friends. I'm making a game on Android and when building, the installation file weighs 76 mb.
This is a lot. How can I reduce the size of the apk file when developing on Android?
The Assets folder (where all the images, sounds, animations and other resources) weighs 20 MB. And where does 56 MB come from?
Editor.log writes this:


5.9 mb 0.9% Assets/Sprites/Background.jpg
5.4 mb 0.8% Assets/Sprites/TableLevel.png
2.2 mb 0.3% Assets/Sprites/Island.png

But where he takes these image sizes from is not clear.
In fact, they weigh 15, 20 kilobytes.
Thank you very much in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Daniil Basmanov, 2018-08-04
@select8

In fact, they weigh as much as written in the log, jpg and png do not get into the build, all files are recoded into the platform format according to the texture import settings. If you want to get smaller images, you can put more compression or use the crunch format. Actually, all this is written in the manual:
Reducing the file size of your build
Optimizing the size of the built iOS Player
Code stripping in Unity
IL2CPP Build Size Optimizations

G
Griboks, 2018-08-04
@Griboks

Read articles on this topic on Habré.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question