- Home /
APK size question
Hello, guys. Here's the editor's log output about sizes:
Textures 8.9 mb 51.7%
Meshes 7.2 kb 0.0%
Animations 2.2 kb 0.0%
Sounds 0.2 kb 0.0%
Shaders 1.3 mb 7.7%
Other Assets 50.7 kb 0.3%
Levels 74.9 kb 0.4%
Scripts 474.3 kb 2.7%
Included DLLs 6.4 mb 37.0%
File headers 35.8 kb 0.2%
Complete size 17.3 mb 100.0%
But the final .apk size is ~55mb. Where does those additional 30mb come from?
Under Player Settings, what is your stripping level set to?
Hi,have a look on below options 1.Check Stripping Level-Under player settings.This stripping can decrease 3 to 5mb(approx) depends on namespaces,Assemblies etc used 2.Check Device filter Configuration: If "Arm v7+ 86" Selected it increased around 5 to 8 mb(approx) of size If possible try using AR$$anonymous$$ v7(one of the popular, oldest Cpus and abundantly used in Android Powered Devices) can reduce. Below are the sizes of apk that were taken in unity 5 Empty Project
1. Both "Armv7+x86" Selected - 17.5$$anonymous$$b
2. Only "Armv7" Selected - 9.88$$anonymous$$b
3. Only "X86" Selected - 10.1$$anonymous$$B
Note:Above Apks were with "Stripping" Disabled
Edit: Stripping can reduce your apk size 3 to 5$$anonymous$$b(approx)
@supernat, it's set to 'disabled'.
@sandeepsmartest Device filter is set to AR$$anonymous$$7 only.
Size increases if you mark gameobjects as static and that size that is being increased depends on the gameobject(polys,Vertices etc) Uncheck Static for all the gameobjects in your scene and have a look on apk size. Thank You
@sandeepsmartest What's the 'static' setting you're talking about? Not sure what you mean, sorry. But it's rather simple scene: I got a background 3D object (wall), another 3D object (lcd pad) and UI system. Here's a screenshot: http://i.imgur.com/fDDJHcj.png
Your answer
Follow this Question
Related Questions
How to keep apk size low when using large 2d animations? 2 Answers
Android APK size way too large 2 Answers
launching unity app from android 0 Answers
How to reduce size of android apk 5 Answers
Size of texture after building too big 2 Answers