Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to reduce apk size?

Discussion in 'Android' started by surajsirohi1008, Jul 23, 2018.

  1. surajsirohi1008

    surajsirohi1008

    Joined:
    Jun 21, 2016
    Posts:
    266
    The first game I created in unity (2017) was only 9.7 mb in size but since then all the games I've created are of size 22 mb. I don't remember what special action I took but I can't achieve the same ~10mb size for APKs.

    How do I reduce apk size? Even an empty project is more than 20mb in size.
     
  2. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    824
    Go to player settings and make sure you are including only a single target architecture.
     
  3. surajsirohi1008

    surajsirohi1008

    Joined:
    Jun 21, 2016
    Posts:
    266
    Screen Shot 2018-07-25 at 6.42.30 PM.png
    You mean check only one of these? If yes, then which one?
     
    Last edited: Jul 25, 2018
  4. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    824
    Yes, one of these. It depends on the architecture of the device you want your app to run on. Most devices have ARM architectures, so you should probably use it. You can make two separate builds with different supported architectures if you want to support them both.
     
    surajsirohi1008 likes this.
  5. surajsirohi1008

    surajsirohi1008

    Joined:
    Jun 21, 2016
    Posts:
    266
    Thanks!

    Not Unity related question but does Google Play store allows the publisher to upload two different builds and automatically install the correct build on the user's device?
     
  6. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    824
  7. surajsirohi1008

    surajsirohi1008

    Joined:
    Jun 21, 2016
    Posts:
    266
    Thanks a lot!