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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Question aab exceeds 150mb

Discussion in 'Android' started by ProphetGod117, Aug 24, 2021.

  1. ProphetGod117

    ProphetGod117

    Joined:
    Feb 21, 2017
    Posts:
    4
    Hi, I was trying to test on Google play but I didn't know that since this month started they no longer accept apks or obb, only aab files, my game weighs about 492mb.

    I was reading about Play Asset Delivery and Asset bundle, but I find this new system very complicated, before it was as simple as separating APK and obb.

    I didn't find any video tutorial explaining how to do this, just a codelab document but it's a bit confusing for me.

    Question: is there any way to separate the aab? Or some way you know how to do this.

    I guess I will have to wait for unity to have a solution as it was the obb thing.

    Thanks
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,011
  3. ProphetGod117

    ProphetGod117

    Joined:
    Feb 21, 2017
    Posts:
    4
    I did the steps it says:

    To configure Unity to build Android App Bundles:
    -Open Build Settings (menu: File > Build Settings).
    -In Platform, select Android.
    -If Export Project is enabled, enable Export for App Bundle. Otherwise, enable Build App Bundle (Google Play).

    To configure Unity to split the application binary:
    -Open Player Settings (menu: Edit > Project Settings then select Player).
    -Select the Android settings tab and open the Publishing Settings section.
    -Enable Split Application Binary.

    But it only creates one aab file and in unity I get the alert that the asset pack is too big, I have to install some additional plugin? im using 2021.2 beta
     
  4. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,011
    If you are exporting for android studio, you can check if Unity has created a big bundle with install time.

    For example:

    upload_2021-8-25_21-25-5.png

    It is supposed to be just one .aab file that you upload and then Google Play does its "magic".
     
  5. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    824
    As AcidArrow has said above, you will always have just a single AAB file. The asset packs will be inside.

    The warning informs you about the fact that automatically created asset packs are bigger than what is currently accepted by the Google's Play store. The asset packs are inside of the AAB file, but if you will try to upload that to the Play store, you will most likely see an error related to size.

    You will have to move some of the assets into the custom asset packs to stay within the size limitations. More details are in the same page where you have found previous instructions https://docs.unity3d.com/Manual/play-asset-delivery.html
     
  6. shyleshnani

    shyleshnani

    Joined:
    Aug 18, 2020
    Posts:
    1
    But aab size limited to 150 MB how can I upload aab more than 300
     
    goldcloud144 likes this.
  7. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,011
    The limit is not for aab, the limit of 150mb is for the apk that is produced from the aab.

    By using the instructions in this page https://docs.unity3d.com/Manual/play-asset-delivery.html you will be able to create an aab file that will result into an APK that is smaller than 150mb and install time asset packs for the rest of your data.
     
  8. InfokubArcade

    InfokubArcade

    Joined:
    Apr 19, 2017
    Posts:
    1
    Did you check the "Split Application Binary" option ? It is told that it is required but on my side (2020.3) it is disabled because not available for AAB.

    [Edit]
    After some reading, it seems that those two things are completely separated. Android handles the thing on its side with the Play Core package.
     
    Last edited: Mar 11, 2022
    goldcloud144 likes this.
  9. goldcloud144

    goldcloud144

    Joined:
    Jun 20, 2020
    Posts:
    9
    It's not true!!
    On GooglePlay .aab is limited to 150Mb.

    Anyway, PAD documentation is so confusing. Does anyone know any tutorial or step-by-step guide for PAD?
     
  10. bz_apps

    bz_apps

    Joined:
    Aug 19, 2014
    Posts:
    70
    Hi, im using the Google package and have selected "Separate Base APK Asset". My final tab files is 380Mb and when I upload to Google it says: "Your App Bundle contains the following configurations where the initial install would exceed the maximum size of 150 MB: arm64-v8a"

    So the package was unable to create my apk under 150Mb... what do I do now? Why did it not work?
     

    Attached Files:

  11. Inngamezstudio

    Inngamezstudio

    Joined:
    Jul 7, 2019
    Posts:
    4
    hey, I've tried split binary and build aab file. my file changed from 180mb to 20mb. the problem is that in aab there are only Base modules, but not asset packs which should be automatically generated. when uploaded to google, can only display a splash screen. can anyone help? if I add a custom asset pack, what about the assets that should be automatically generated at the start?
     
  12. mkg2w

    mkg2w

    Joined:
    Aug 19, 2013
    Posts:
    49
    Using 2019.4.38, on setting AAB with Split Application Binary, we get a AAB file containing only the first scene. As per documentation, we are expecting Split application binary to create an AAB with all asset packs set for install-time.

     
  13. mkg2w

    mkg2w

    Joined:
    Aug 19, 2013
    Posts:
    49
    I am facing the same issue. only to eliminate Unity version as the cause, can you share what version you are using?

    We also tried using a Google's Play Asset Delivery package for unity. that seems to work fine, but the aab is 240mb but the installed game ends up at 850mb. this is double of a large APK
     
  14. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,011
    Just not to let misinformation here:

    Generated APK from .aab has a size limit of 150mb. .aab itself does not have a size limit. aab is a container containing all your bundles that then the google play backend can split.

    Unity has provided an easy way to have an .aab that then will split into an .apk and an install-time bundle, assuming one 1GB bundle is enough. This is achieved by ticking the split application binary checkbox in player settings.
     
    LunaWoolf likes this.
  15. H_Battousai

    H_Battousai

    Joined:
    Aug 22, 2022
    Posts:
    3
    Did you managed to solve this issue?
     
  16. H_Battousai

    H_Battousai

    Joined:
    Aug 22, 2022
    Posts:
    3
    I'm facing exactly the same problem, did you find a solution?
     
  17. ProphetGod117

    ProphetGod117

    Joined:
    Feb 21, 2017
    Posts:
    4
    Hi, what I did was to make the first scene as a loading screen and once it finishes it automatically leads to the main menu.
     
  18. H_Battousai

    H_Battousai

    Joined:
    Aug 22, 2022
    Posts:
    3
    I already have an initial scene that plays a splash screen animation and then calls the next one, but the same thing keeps happening
     
  19. xxluky

    xxluky

    Joined:
    Dec 4, 2014
    Posts:
    18
    This is so stupid. I had to move from APK to AAB. Split Application Binary is working only for APK files but it's not working for the option checked in the Build Settings "Build App Bundle". I get one file .aab and if I upload it to GP it says the file exceeds over 150mb. Is it a Unity bug or am I doing something wrong? There is no tutorial for this that would work for me. Using Unity 2021.3.23
     
    Last edited: Sep 23, 2023
    ina likes this.