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

Android symbols.zip is too big

Discussion in 'Android' started by PuddingEntertainment, Sep 7, 2020.

  1. PuddingEntertainment

    PuddingEntertainment

    Joined:
    Mar 19, 2016
    Posts:
    8
    Hey all,

    there was a thread that is somehow related, but it is unfortunately not followed anymore, so I decided to start another one.

    I have the option "Create symbols.zip" enabled but the generated zip size is too big > 400MB whereas Google Console accepts only up to 300MB.
    StackTrace Log Type is set to ScriptOnly. Looking inside the archive I can see that there are 2 symbols - one for each selected architecture (ARMv7 and ARM64).

    What to do in this case? Such archive is not accepted by Google Play Console.

    Unity 2019.4.3

    P.S.
    I'm not alone with this issue, somebody asked the same question on SO also
     
    makaka-org likes this.
  2. kaarloew

    kaarloew

    Joined:
    Nov 1, 2018
    Posts:
    360
    Did you try rezipping the content with maximum compression level?
     
    udubaso and makaka-org like this.
  3. PuddingEntertainment

    PuddingEntertainment

    Joined:
    Mar 19, 2016
    Posts:
    8
    Hey @kaarloew , thanks for suggestion, that helped to reduce the size to ~120MB !
    I hope Unity devs will see this and apply better compression for the generated symbols.zip
     
    udubaso likes this.
  4. carbon_studios

    carbon_studios

    Joined:
    Jun 14, 2020
    Posts:
    8
    That helped reduce the file size, but now you cannot upload it:

    "The native debug symbols contain an invalid directory my_app.symbols. Only Android ABIs are supported."
     
    sivaliZation likes this.
  5. sivaliZation

    sivaliZation

    Joined:
    Jun 21, 2017
    Posts:
    4
    Previously re-zipping worked without an issue, but now its throwing invalid error!
     
  6. Tymianek

    Tymianek

    Joined:
    May 16, 2015
    Posts:
    94
    @carbon_studios
    U need to unzip it, go to the folder, zip the contents, not the folder itself.
     
    lucbloom and BK-101 like this.
  7. Xarbrough

    Xarbrough

    Joined:
    Dec 11, 2014
    Posts:
    1,184
    My team also has this issue in all our projects. Our games are quite small in fact, but the native debugging symbols zip is way above the Google Play upload limit of 300 MB.

    The workaround to unzip and rezip works fine. We've also automated this in our custom build pipeline, but please Unity, just fix this in your code. I don't know how it's possible to even create such a large zip in the first place, but for me, it's a one-liner with the NetStandard2.0 ZipFile library and it does a much better job at compressing the file. Zipping also only takes a fraction of a second, so I don't think there's any reason to prefer less compression. The Google Play upload works fine as well.
     
    skullthug and Pyr3z like this.
  8. tonyrobots

    tonyrobots

    Joined:
    Sep 10, 2019
    Posts:
    2
    Here to support this request for better compression of the symbols .ZIP file. Just unzipped the contents and rezipped using .7z and went from 360MB to 92MB. The contents themselves are 360MB uncompressed, so it would appear the "zipping" that unity does doesn't involve any compression at all.
     
    Michael_Berna and Pyr3z like this.
  9. vitaly

    vitaly

    Joined:
    Oct 12, 2012
    Posts:
    10
    In my case symbols.zip is almost 2 GB. When rezipping it I get 500 MB which is still too much. Are there any other suggestions?
     
  10. Ardito92ITA

    Ardito92ITA

    Joined:
    Apr 1, 2014
    Posts:
    37
    I've got the same problem
     
  11. MikeMnD

    MikeMnD

    Joined:
    Jan 17, 2014
    Posts:
    13

    Check this:


    And also what helped me at the end was deleting the debug files and renaming the others to libil2cpp.so then zipping them again. Other way with the dbg. files it always goes over 300mb
     
  12. el_Guero

    el_Guero

    Joined:
    Sep 15, 2017
    Posts:
    168
    Same problem. My symbols are about 1.5GB when rezipping I get around 400mb. How can this be solved? Somebody found out?

    And why are those symbols so big anyways in the first place?
     
  13. kaarloew

    kaarloew

    Joined:
    Nov 1, 2018
    Posts:
    360
    Most likely because you have so many plugins in your project.
     
  14. muhammad_unity424

    muhammad_unity424

    Joined:
    Apr 13, 2020
    Posts:
    1
  15. el_Guero

    el_Guero

    Joined:
    Sep 15, 2017
    Posts:
    168
    Nope
     
  16. poliman

    poliman

    Joined:
    Feb 5, 2015
    Posts:
    29
    I've got the same problem
    nothing works to reduce it repacking to below 300mb

    Any solutions?
     
  17. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    poliman likes this.
  18. clamum

    clamum

    Joined:
    May 14, 2017
    Posts:
    61
    Nice, re-zipping in 7zip "Ultra" compression level brought mine down from about 750 MB to 189 MB. And my game is very simple and small although it does have a big size if I zip up the project directory (for like a backup), partially due to the cache but also I have unneeded assets in there that I should probably delete.
     
  19. Vivraan

    Vivraan

    Joined:
    Feb 2, 2018
    Posts:
    26
    Please fix in LTS! Is this bug being tracked?
     
  20. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    There's no bug here, Unity was simply putting all the symbols in the package previously. That zip was never meant for uploading symbols to Google Play, the option to upload symbols only appeared later.

    As mentioned in https://forum.unity.com/threads/making-android-symbols-package-smaller.1109600/ Starting with Unity 2021, you can request what kind of package you want, and by choosing Public symbols, you can acquire a package for uploading to Google Play.
     
    skullthug and Vivraan like this.
  21. perholmes

    perholmes

    Joined:
    Dec 29, 2017
    Posts:
    295
    When you're building an App Bundle with multiple architectures, is the symbols.zip file still conformant? I see folders for multiple architectures inside the zip archive. Does Google know how to parse this?
     
  22. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    Yes, google knows how to do it. The symbols zip package should be compatible with app bundles
     
  23. perholmes

    perholmes

    Joined:
    Dec 29, 2017
    Posts:
    295
    Fantastic!

    Off topic question, does Google provide an API to upload both app bundles and symbols? Or are there so many manual steps to create a release anyway, that it makes more sense to manually upload to the Google Play portal? Just hoping to avoid building an API upload if it turns out that it's not workable and someone else already knew.
     
  24. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,669
    That's more a question for Google, I am not aware of such APIs
     
  25. kaarloew

    kaarloew

    Joined:
    Nov 1, 2018
    Posts:
    360