- Home /
apk size doesn't make sense with editor log
I build an apk for android, my editor log says:
Textures 6.8 mb 44.1%
Meshes 0.0 kb 0.0%
Animations 30.6 kb 0.2%
Sounds 1.4 kb 0.0%
Shaders 2.4 mb 15.7%
Other Assets 917.7 kb 5.8%
Levels 106.9 kb 0.7%
Scripts 1.0 mb 6.5%
Included DLLs 4.1 mb 26.3%
File headers 116.2 kb 0.7%
Complete size 15.5 mb 100.0%
but the .apk file is 32mb, and the install size is 60mb... what's going on over here??
Where do you see this!? I saw that this was a thing a while ago but have never been able to find it.
unity editor log, go to editor console and in the upper right corner you click and click editor log
Answer by tanoshimi · Mar 21, 2015 at 08:23 PM
The build size reported in the editor log doesn't include any assets in the /resources folder, or audio streamed from disk, or the actual .DLL files required by the Unity runtime itself etc.
To see what actually takes up the room in a .apk file, simply rename it to .zip and then extract the contents.
lol extracting it doesn't help, there aren't any individual asset files.
Are you sure /resources files don't get included? I have this in my editor log for example:
Used Assets, sorted by uncompressed size:
2.7 mb 17.2% assets/plugins/textmesh pro/resources/Sprites/Default Sprite Atlas.psd
2.0 mb 12.9% Built-in Texture2D: SpriteAtlasTexture-game (Group 0)-1024x1024-fmt13
1.0 mb 6.5% assets/plugins/textmesh pro/resources/Fonts & $$anonymous$$aterials/ARIAL SDF.asset
765.9 kb 4.8% assets/plugins/textmesh pro/resources/Shaders/T$$anonymous$$Pro_SDF.shader
763.3 kb 4.8% assets/plugins/textmesh pro/Fonts/ARIAL.TTF
733.3 kb 4.6% assets/plugins/textmesh pro/resources/Shaders/T$$anonymous$$Pro_SDF Overlay.shader
652.1 kb 4.1% assets/_turret_game/_splashscreen/Textures/IAGG Logo.png
461.1 kb 2.9% assets/_turret_game/_splashscreen/Textures/2.2 Logo.png
412.9 kb 2.6% assets/plugins/textmesh pro/resources/Shaders/T$$anonymous$$Pro_SDF-Surface.shader
186.5 kb 1.2% assets/glow effect/Glow/GlowReplace.shader
115.8 kb 0.7% assets/plugins/textmesh pro/resources/Shaders/T$$anonymous$$Pro_SDF-$$anonymous$$obile.shader
115.5 kb 0.7% assets/plugins/textmesh pro/resources/Shaders/T$$anonymous$$Pro_SDF-$$anonymous$$obile Overlay.shader
102.1 kb 0.6% assets/plugins/textmesh pro/resources/Shaders/T$$anonymous$$Pro_SDF-Surface-$$anonymous$$obile.shader
46.9 kb 0.3% assets/_turret_game/_game/sprites/GA$$anonymous$$E/sprites_main.png
42.7 kb 0.3% assets/touchscript/Textures/Touch.png
it keeps going but as you can see /reseource files are counted. Interesting regarding the audio though.... WTF why do we have to deal with this crap man...
I got the same issue. $$anonymous$$y editor log shows my app is 10 $$anonymous$$B but the build is 90 $$anonymous$$B. The editor log used to list all the assets including the assets under the Resources folder. but somehow it's not doing that now. I wonder are the assets show up in your editor log references in your scenes so they show up. I will run a few tests and see what happened.
Since all assets under the resources folder are included in the build, it will be better if they show up in the build log no matter they are referenced or not.
This shouldn't be an issue, It always works for me. I mean, both of you guys are having the same problem - I'm not! Search up on google for more info :)
@Puzzle$$anonymous$$aster1967
@TNSTstudios2015
Please don't post such "comments" as answers. This is not a forum to chat. Answers always have to address and answer the actual problem in the question at the top.
@Puzzle$$anonymous$$aster1967:
Your main issue is that you expect that log to show different information than what it does. It's simply a listing of used assets. That listing should help you finding assets you accidentally referenced somewhere. At no point does it say: "final build size". How large a build is once it's built can be figured out by actually looking at the built file(s).