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

Question Build aab is very large

Discussion in 'Android' started by brano42, May 31, 2023.

  1. brano42

    brano42

    Joined:
    Aug 25, 2020
    Posts:
    77
    Hello i have a problem with aab file ....its very large around 400 mb i have all textures set on 512 mb

    can someone help me how to get to 150 mb aab


    Here is Build Report
    Uncompressed usage by category (Percentages based on user generated assets only):
    Textures 108.2 mb 39.6%
    Meshes 146.7 mb 53.7%
    Animations 1.4 mb 0.5%
    Sounds 2.8 mb 1.0%
    Shaders 8.5 mb 3.1%
    Other Assets 5.0 mb 1.8%
    Levels 0.0 kb 0.0%
    Scripts 175.6 kb 0.1%
    Included DLLs 0.0 kb 0.0%
    File headers 263.7 kb 0.1%
    Total User Assets 273.0 mb 100.0%
    Complete build size 729.0 mb
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,659
  3. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,977
    Are the textures using compression? (ETC? ETC2? ASTC?).

    But also you don't really need to get below 150mb.
     
  4. brano42

    brano42

    Joined:
    Aug 25, 2020
    Posts:
    77
  5. brano42

    brano42

    Joined:
    Aug 25, 2020
    Posts:
    77
    Sorry but even if the textures were 0 mb, it still wouldn't help me
     
  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,659
    It's fine, 150MB restriction is only applied for the main app module, not the whole aab. Your resources are placed in asset pack and don't count towards 150MB restriction
     
  7. brano42

    brano42

    Joined:
    Aug 25, 2020
    Posts:
    77
    that's not true because google play console won't accept my aab file if have more mb than 150 mb
     
  8. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,977
    The error message says the resulting APK cannot be more than 150mb, you can have more data as an asset pack that is included in the aab. To set up install time asset packs follow the various guides and docs devs are posting in this thread and make sure you are using a semi-new-ish Unity.