How to reduce the android app build size!
right now without any data the empty unity project getting 18mb output file .How to reduce that size around 5mb?
How to reduce the android app build size!
right now without any data the empty unity project getting 18mb output file .How to reduce that size around 5mb?
bump
you can build an apk per processor architecture (e.g: ARM and x86 APKs).
This removes around ~ 8 - 10 mb from the build.
any other answers?
If you have ‘using System;’ in some script, it adds 1mb(?) (not tested, but have heard so…)
right now i can able to reduce only 10 mb as liortal said .by changing to arm7. but i dont think using system will reduce size.empy scene without script is 19mb right now
if u change arm 7 only target format for processor then u get 19-9 mb so =10 total .for a empty project
i dont know how to reduce more than that .if any other know let me know.empty scene should take that much size.want to reduce that
The engine + mono takes a few good mb’s… u cannot drop below that. even for an empty scene (no content).
You can try to use il2cpp on Android, i haven’t used it so i am not sure what is the current size for those builds.
In il2cpp i believe that they apply stripping for engine code, so that may reduce the unused parts and reduce the overall size.
Unity build size begins from ~15 mb and Unreal Engine 4 begins from ~50mb.
This is for engine internal dll and files. For example splash screen image.
After 15 mb, you can manage your build size with these tips:
ok thanks for all !
Bumped across this while try to reduce the size of a very simple game, currently consuming 24 MB.
Thanks… that explains a lot… But 15MB for mobile platform is a lot I believe, where size matters a lot. Still way better than UE4 I guess.
When i run my app size of apk will 21 MB. even i enabled proguard. i use android studio to run project. in project files src folder has 8.62 MB size and lib folder size is 400 KB size. so how i reduce size of .apk file. Actually .apk file is 8 mb before some days with same images but after paypal integration my app size will increases to 21 mb. size of build folder is 127 MB.
I am using Unity 22018.1.7, however, but I remember reading in the release notes, that, iirc, the latest version allow us to chose which default packages to include in the build. I am not sure if they mean what I think they mean, but I believe we can remove the unneeded Unity modules now. Has anyone tested this?
That’s really great. What was the final size?
Also, I noticed that you are using 2019.1 Alpha, not the latest f release. But, it is there in 2018.2+, right?
Yes I think it’s present in 2018.2 and later.
Great.
Too sad I tried 2018.2 yesterday, but my project doesn’t seem compatible.
Mostly due to the use of TextMeshPro. T_T
For anyone stumble upon this post later, disable unity build-in package did not help reduce file size. It gonna be stripped if you not using it anyway so there is no point disable it.
And the smallest size I can get with 2018.2 unity default scene with Camera is 6.25MB
You have to use stripping engine code with:
Thanks @NoDumbQuestion
Worth noting
BTW, doesn’t Unity automatically use Atlas for all textures?
What do you mean by this?