File size is far too big!!

Hello!
I have a little problem with the file size of my android game. The game is made of only 1 scene with 1 camera, 1 directional light, 4 cubes, 1 plane, 4 javascripts and 2 materials. But the file size of the .apk file is already 7 MB and when I load the game on my android device it takes 19,45 MB. Now the question is, how is that possible and what can I do to minimize the size of the game? If anyone knows the answer please reply.

Check the Editor Log (button in top-right of Console window), after building.

Scroll to towards the end of this text file and you will see a section like this:

***Player size statistics***
Level 0 'Assets/Loader.unity' uses 459.0 KB compressed / 1.6 MB uncompressed.
Level 1 'Assets/Game.unity' uses 2.3 MB compressed / 7.8 MB uncompressed.
Total compressed size 2.8 MB. Total uncompressed size 9.4 MB.

Textures      3.9 mb	 41.2% 
Meshes        2.3 mb	 23.9% 
Animations    679.1 kb	 7.0% 
Sounds        0.0 kb	 0.0% 
Shaders       538.1 kb	 5.6% 
Other Assets  653.8 kb	 6.8% 
Levels        147.8 kb	 1.5% 
Scripts       453.3 kb	 4.7% 
Included DLLs 136.0 kb	 1.4% 
File headers  747.4 kb	 7.8% 
Complete size 9.4 mb	 100.0% 

Used Assets, sorted by uncompressed size:
 277.1 kb	 2.9% Assets/Player/Human.blend
 264.1 kb	 2.7% Assets/Player/Orc.blend
 216.1 kb	 2.2% Assets/Monsters/Foo.blend
 213.0 kb	 2.2% Assets/Dungeon/Dungeon.blend
 170.8 kb	 1.8% Assets/Monsters/FooSkin.png
 ...

Yes, Unity should make this critical information way more obvious!

Sometimes it’s as simple as a texture you have forgotten to downscale, or a model that needs to have Compression turned on (model and/or animation). Sometimes you’ve inadvertently depended upon an expensive DLL (like XML). Sometimes a package you’re using (like Detonator) has a lot of big unused Resources (unused mere assets don’t matter).

Note on the above sizes: these are for a WebPlayer; unlike Android and iOS, web builds don’t have to include the Player, since the user installs that separately (I suspect that’s actually the entirety of your “problem”).

Hello an excuse my English. You can reduce you build in 6 -12 mb

Enter the player setting-> Other Setting- > Change filter device (FAT (AMRv7x86)) to ARMv7. With this you can reduce the size of you build and remember compress and override all PNG,JPG images in you scene

Check the sizes and settings for your assets. Textures can take up a significant amount of space, and the quality of those textures does make a difference. Lowering the quality can dramatically reduce the size of your project.

Also, make sure you remove any unused assets.

that’s normal. The size won’t change much. My current project size: 300MB. Unity basic builds a 11MB apk file for me, and I’m happy with it :slight_smile:

If I´m developing for android, I should remove the standart assets folder and the mobile assets folder from my project if I´m not using any of it? I just got a gui texture that fills the screen , 3 .js scripted buttons and my final export .apk it´s 24 Mb!
What else do I need to make to lower the size of the .apk?

You can view here for details on how to remove the .dlls like System, System.Xml and Boo.dll.

Remove any un-needed assets from your assets folder.
Unless you have PRO, Unity will not do this automatically for you.

Im making a 2d game its 500 mb!!!

I see games like zombie tsunami, plants vs zombies 2, and other games which is 81-100mb only

why my game is so high!

texture is the main problem Im using true color sprite in my graphics