What Players Settings can I choose to reduce the apk size of my Android game?

I have a a basic 2D Android game with apk size of 37.4, which I think is too much.

I have already optimized the size of the sprites. Are there any ways I can further reduce the apk size of my Android game through tuning the players settings or removing some redundant packages?

FYI, I am using Unity 2020.3.40. Admob, Unity Ads, Unity IAP are all the plugins I use.



Thank you!

It depends on what files occupy the most space, try extracting apk with 7z and check the sizes of individual files.

If it’s libil2cpp.so - then that’s your code, raising Managed Strip Level + setting Strip Engine Code On would help, if it’s resources, then it’s all about textures, meshes, audios. Setting compression level or lowering size would help.

Thank you for your reply. However, I heard that increasing Managed Strip Level may cause some of the codes misidentified as “unused” and thus stripped, causing errors in runtime. Is that concern valid or not?

It’s valid, only if you don’t test your app :slight_smile: Meaning, if something’s really stripped, you will see such error during the testing phase. Also, this issue is only present, if you don’t reference APIs directly, but use reflection instead.