# How do I reduce the size of my symbols.zip?

I am making an Android app in Unity. Google recommends using a symbols.zip, which Unity auto-generates. However, the symbols.zip that Unity is generating for my app is over 1 GB, and the max size that Google will accept is 300 MB.

How can I reduce the size of my symbols.zip?

If you haven't solved this yet I ran into the same problem and the solution is stupidly simple: Unpack the symbols.zip file and repack it.

You'll hopefully get an ok sized symbols file. It seems that Unity is simply very bad at compressing.

edit Rename the compressed file to the same name as the original file

Source

• Hey, thanks for this. In my case size got reduced from 545 Mb to 140 Mb ! – Sumudu Sep 28 '20 at 19:04
• Reduces the file size, but then when I try to upload: "The native debug symbols contain an invalid directory my_app.symbols. Only Android ABIs are supported." – Evorlor Sep 30 '20 at 15:41
• I haven’t tested if it makes a difference, but renaming your zip to the original zip file’s name might be required – Erik Oct 1 '20 at 18:39
• Could it be that the zip contains some hidden/special files, that were accidentally skipped when your re-zipped the unpacked contents you could see? It would be very surprising if Unity left an almost 75% file size reduction on the table unnecessarily, especially with a battle-tested format like .zip. – DMGregory Oct 1 '20 at 19:55
• @DMGregory Nope, nothing hidden in there, I agree it is surprising, but it it seems so, at least for some of us. ➜ 1.4.5(77)-1.4.5-v77.symbols git:(iOS) ✗ ll -a total 0 drwxr-xr-x 4 erik staff 128B Oct 6 20:18 . drwxr-xr-x 10 erik staff 320B Oct 6 20:18 .. drwxr-xr-x 5 erik staff 160B Oct 6 20:17 arm64-v8a drwxr-xr-x 5 erik staff 160B Oct 6 20:16 armeabi-v7a – Erik Oct 6 '20 at 18:44

I believe Symbols.zip contains debugging symbols used for generating stack traces when an error occurs. It should be safe to remove this, though you might have difficulty diagnosing crash reports.

As an aside, if you're getting 1GB of symbols in a non-debug build, it sounds like something is going wrong with the build system, so this might be something worth reporting to Unity using the bug reporter.

• Thanks for the tip, but I am already doing ScriptOnly. It is already removed - I am trying to make it small enough that I can use it. – Evorlor Jul 2 '20 at 22:52
• @Evorlor If you have any plugins, you might try compiling without the plugins to see if that drastically affects the Symbols size. If it does, there might be a problem with the plugin. Otherwise, if the symbols are 1GB and you're not using "full" stack traces, it sounds like an engine bug you should report using "Help > Report a bug" – Kevin Jul 2 '20 at 23:41
• ABSOLUTELY NOT. Stack trace is what you get in the Unity log. Nothing related to Builds. – Alexis Pautrot Oct 24 '20 at 18:38
• @AlexisPautrot You're right, I was thinking of the WebGL "Enable Exceptions" setting "Full with stack trace", which greatly increases the build size on WebGL. However, enabling full stack trace in the regular logging settings will hurt performance on any platform since Unity is logging significantly more information. – Kevin Oct 29 '20 at 18:57
• It will hurt performance if something is logged. Which is almost never, unless an exception is throw, or something is logged by your code, or by a 3rd party code you use. I do agree that logging with full stack is not recommended in a release build, unless its an error. – Alexis Pautrot Jan 14 at 16:55

If you are using Windows to zip, do not zip the originally extracted folder. Zip the contents of it, then rename.

https://stackoverflow.com/questions/63544670/unity-android-build-symbols-zip-file-too-big/64267680#64267680