- Home /
.apk file too large in Unity 5
Why .apk file too large in Unity 5 although it is an empty project?
in unity 4... it takes 14mb on empty project,
but in unity 5, it takes 18 mb on empty project.
i'm using unity 5 free edition
Answer by mirek.um · Apr 01, 2015 at 12:28 PM
Check Player Settings -> Other Settings -> Device Filter. If you have both ARM and x86 apk is much larger.
Wow, can't believe I didn't think of this obvious answer. $$anonymous$$udos! Granted, Yury also didn't mention it, and he seems to work for Unity :)
wow, it reduce almost 8mb when i'm selecting AR$$anonymous$$v 7 only.
Answer by shopguy · Mar 31, 2015 at 02:04 AM
18mb doesn't seem like a lot to me, for a library with all of the features of Unity. If you want super tiny distributions, I think you'd have to go with native apps (as in, no library, or just the native libraries that are already installed thus do not have to be distributed in your APK).
..and even more so, 4mb increase from v4 to v5 seems very reasonable as well. I think it's been a few years between v4 and v5, so 4mb difference is not much compared to increase in device storage capacity and bandwidth over the last few years.
I think the library went from something around 8$$anonymous$$B for v4 to 17-18$$anonymous$$B for v5. Ofcourse, I agree that build size maybe a problem for few considering their app is not doing much and that they should go with native apps, but Unity should have this feature in the future where the developer is able to select only the libraries they want to link. That would be super awesome!
@shopguy is right. libunity.so size increased by several (~5 IIRC) mbytes in Unity 5 comparing to 4.6. That is the new code and functionality, and it cannot be stripped.
It is also correct that comparing to asset size of an average game, the code size increase is negligible.
However we will try our best to make the file size smaller.
Your answer
Follow this Question
Related Questions
APK Installer 0 Answers
Unity5 Transparent UnityPLayer view in Android 4 Answers
Daydream compatible Unity versions? 0 Answers
Sprites increase android apk size 2 Answers
Android Plugin with AppCompat Theme 2 Answers