Share via

Where can I find the ReTrace mapping file after creating an Android aab file in Visual Studio?

Kim Strasser 2,366 Reputation points
2026-04-05T22:33:46.8833333+00:00

I got these two warnings after uploading my aab file to Google Play Console Internal Testing:

Screenshot 2026-04-06 001354

I have uploaded a zip archive with the native debug symbols:

Screenshot 2026-04-06 002902

But I don´t know where I can find the ReTrace mapping file. Where can I find the ReTrace mapping file after creating an Android aab file in Visual Studio so that I can upload it to Google Play Console?

Screenshot 2026-04-06 002329

I don´t have a mapping.txt file in the following folder after creating my aab file:

Screenshot 2026-04-06 003523

Developer technologies | .NET | .NET MAUI
0 comments No comments

Answer accepted by question author
  1. Nancy Vo (WICLOUD CORPORATION) 1,985 Reputation points Microsoft External Staff Moderator
    2026-04-06T06:03:49.9766667+00:00

    Hi @Kim Strasser ,

    Thanks for your question.

    The ReTrace mapping file is usually generated in the publish subfolder after a full Release build:

    • Mapping file is usually generated in:

    bin\Release\net10.0-android\publish\mapping.txt (right next to your signed .aab file)

    • Sometimes it lands in the root of the Release folder:

    bin\Release\net10.0-android\mapping.txt

    According to the official .NET for Android build properties documentation, the mapping file is produced automatically when using the R8 shrinker. However, code shrinking itself is turned off by default in most .NET MAUI projects.

    1. Right-click your MAUI project → Properties.
    2. Go to Android → Options tab.
    3. For the Release configuration:
    • Turn on Code shrinking (or set it to R8).
    • Make sure Linking is set to SdkOnly or Full.
    1. Save, then do a clean + rebuild or Publish again.
    2. Then, check again to see if the mapping file exists.

    I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2026-04-05T22:34:00.1233333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    In a .NET for Android / .NET MAUI app the ProGuard/R8 mapping file that Google Play calls the “ReTrace mapping file” is the mapping.txt file produced by R8.

    When the project uses R8 (AndroidLinkTool=r8), the build automatically generates this file in the project’s output folder. The build property that controls this is AndroidProguardMappingFile, which by default produces:

    $(OutputPath)mapping.txt
    

    So after building the Release configuration that creates the .aab, look in the corresponding output directory (for example, bin/Release/<tfm>/ for the project) for mapping.txt. That file is what should be uploaded to the Google Play Console as the ReTrace mapping file.

    If the file is not needed or should not be generated, the AndroidCreateProguardMappingFile property can be set to False, but for Play Console deobfuscation it should remain enabled so that mapping.txt is created.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.