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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Apk in AAB exceeds 150MB because base-master.apk contains all assets when upgrading unity 2021

Discussion in 'Android' started by hs-hiraoka, Apr 14, 2023.

  1. hs-hiraoka

    hs-hiraoka

    Joined:
    Nov 17, 2022
    Posts:
    2
    Hi everyone,
    I need some help as I have not fixed the issue for long. I am trying to upgrade our project from Unity 2020.3.46f1 to 2021.3.22f1.
    When building Android AAB, I am seeing an issue. The apk in AAB exceeds 150MB, although it was small enough when building with Unity 2020. I extracted the AAB built by Unity 2021 and found that the base-master.apk contains all bundles. As the result, the size of base-master.apk is more than 300MB which used to be 48MB with Unity 2020. In AAB built by Unity 2021, there are asset apk files as expected, however base-master.apk contains all bundles that could be loaded as separated apk.
    Is there any settings I need to check?
     
  2. hs-hiraoka

    hs-hiraoka

    Joined:
    Nov 17, 2022
    Posts:
    2
    The middleware needed to be updated. We fixed the issue. Thanks!