Proguard mapping file - where can I find it?

We use ProGuard when compiling our app on Android, and we need the mapping.txt file that should be created so we can upload it to Google Play (docs).
Is this mapping.txt file being generated by Unity? Where can I find it?

The location of the file depends on your Unity version. In latest Unity versions the mapping file will be placed at the same location as your apk file when you build it from the editor. The file will be named “_mapping.txt”. In older versions the mapping file can be found in "\Temp\gradleOut\build\outputs\mapping" after you build the apk. Just make sure to copy the mapping file from the latter location as it will be removed after you close the editor.

1 Like

@JuliusM I can’t find any mapping file in Unity 2019.1.4
Was it deprecated, or placed in other location? Do I need to build developer build to get it?

It works for both release and development builds if proguard is enabled.

The mapping.txt its required to be upload in google play console? if not could cause crashes in unity cloud?

Does deobfuscation work for code, written in c#? how to do it?

How it works? On the New Google Play Console now it shows this :

Where I can get the DEBUG SYMBOLS and the DEOBFUSCATION FILE after creating an Unity Android Build?

I am also looking for a solution to the same problem.

The debug symbols are placed in the same location as your built app bundle if the symbols are enabled in the build settings.
6194716--679507--upload_2020-8-12_11-39-57.png
"deobfuscation file " is named mapping file and it is also placed in the same location as your built app bundle if minification is enabled in the player settings → publishing settings. Note that if minification is not enabled, then your java code is not obfuscated and the warning in the play console can be ignored.
6194716--679513--upload_2020-8-12_11-43-5.png

10 Likes

Hey @JuliusM

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.

I had the same issue. I chose only ARM64 and symbols.zip file was barely 296 mb. It worked in that way however I’m not sure if some devices won’t be supported when ARM7 is unchecked.

My solution didn’t work as expected :slight_smile: When you choose one of either ARM64 or ARM7 you sacrifice support for many devices. So no point in doing it. I’m looking forward for some kind of solution to reduce size of symbols.zip file

1 Like

thanks for confirming @HectorOfPriamos ! I thought about doing the same, but then decided to wait for a bit.
hopefully, we will hear something from @JuliusM

@HectorOfPriamos & @PuddingEntertainment You can simply unzip the downloaded ZIP symbol files and re-zip with 7-Zip or other, at Maximum compression, it’ll shrink significantly :wink:

3 Likes

@JuliusM It would be better to have current low compression of these symbol files for development builds only (to keep it fast), but whenever you are building a non-dev build, using a much higher compression is mandatory (or a setting to choose how much they should be compressed), because any developer today has to unzip / rezip symbols in order to upload to Google Play.

I can’t see any released game being able to create symbols for both ARM64 and ARMv7 with symbols < 400 Mo with current setting, forcing us this additional step that’s a waste of time (I’m doing this from Cloud Build, it does break the nice workflow of Cloud Build). Is that planned for the near future?

On that topic, how can I retrieve the mapping .txt file from Cloud Build?

Thank you!

3 Likes

@Haze-Games this is an unbelievably simply solution but it works really! Thanks mate!! How come I couldn’t find that simple solution I don’t know because I have searched the web for such a long time! Since then I have been exporting my project to Android Studio and build there to have smaller symbols.zip file :rage: But now I no longer need it, thanks again mate :slight_smile:

@PuddingEntertainment I definitely recommend you trying that solution, it works like magic :slight_smile:

1 Like

Same Question… If you got a solution, it would be appreciated…

donde encuentro el archivo de texto estoy usando la unidad 2020.2 con la opciĂłn R8 habilitada ???

my ads stoped working after i minify->proguard for mapping file. any solution to this @PuddingEntertainment

Hello, I did all according to your guide but it does not work.
I cannot upload mapping file to Google Play Console, therefore it shows this warning:
7154227--856336--upload_2021-5-19_8-29-0.png