- Home /
Problem is not reproducible or outdated
How to decrease apk size(on device) to around 10mb?
I have made a game with Unity and the apk size is around 10mb, but on the phone it is 30mb and I only have 2 scenes, 16 small scripts, 1 material, 1 prefab, and 1 physic material. If I go to the assets folder in explorer I see the assets only are 122kb, so why do I have an apk file of 10mb???(on another account I have Unity Pro and Android Pro and I have put stripping level to micro mscorlib and the device filter to ARmv7 so that could not be the reason) And how can I decrease the size to around 5mb.
Oh, and btw the apk size itself is not the problem but the problem is that the size on the phone is 30mb, that's too much for a simple 3d game!
This is a part of editor.log(for some reasons I changed the names):
Textures 0.0 kb 0.0%
Meshes 0.0 kb 0.0%
Animations 0.0 kb 0.0%
Sounds 0.0 kb 0.0%
Shaders 423.0 kb 8.9%
Other Assets 1.7 kb 0.0%
Levels 82.5 kb 1.7%
Scripts 189.7 kb 4.0%
Included DLLs 3.9 mb 85.1%
File headers 8.5 kb 0.2%
Complete size 4.6 mb 100.0%
Used Assets, sorted by uncompressed size:
424.1 kb 9.0% Resources/unity_builtin_extra
3.8 kb 0.1% C:/Program Files/unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll
0.4 kb 0.0% Assets/Cube.prefab
0.1 kb 0.0% Assets/Scripts/script1.cs
0.1 kb 0.0% Assets/Scripts/script2.cs
0.1 kb 0.0% Assets/Scripts/script3.cs
0.1 kb 0.0% Assets/Scripts/script4.cs
0.1 kb 0.0% Assets/Scripts/script5.cs
0.1 kb 0.0% Assets/Scripts/script6.cs
0.1 kb 0.0% Assets/Scripts/script7.cs
0.1 kb 0.0% Assets/Scripts/script8.cs
0.1 kb 0.0% Assets/Scripts/script9.cs
0.1 kb 0.0% Assets/Scripts/script10.cs
0.1 kb 0.0% Assets/Scripts/script11.cs
0.1 kb 0.0% Assets/Scripts/script12.cs
0.1 kb 0.0% Assets/Scripts/script13.cs
0.1 kb 0.0% Assets/Scripts/script14.cs
0.1 kb 0.0% Assets/Scripts/script15.cs
0.1 kb 0.0% Assets/Scripts/script16.cs
0.1 kb 0.0% Assets/Bouncy.physicMaterial
Thanks in advance!
Answer by DoTA_KAMIKADzE · Aug 31, 2015 at 07:57 PM
Unless you want to buy Unity's source code license I don't think it will be possible even in the nearest future to get as low as 5mb only. For more details on that part you can read my comment THERE.
Why the size of actual installation differs from apk size? It is a pretty simple question - because apk is basically just packed-up archive, you can use something like for example 7zip to unpack it and view what it actually contains and how much that stuff weight.
Why it is that heavy? Well if you'll unpack and check it out you'll understand yourself - it brings all used Unity Engine dlls and mono runtime with itself, so even an empty project will be over your required 5/10mb.