Google Play: This App Bundle contains native code, and you've not uploaded debug symbols.

Kim Strasser 1,321 Reputation points
2024-12-19T14:14:29.9+00:00

I get the following warning when I try to create an internal testing release on Google Play:

This App Bundle contains native code, and you've not uploaded debug symbols. We recommend that you upload a symbol file to make your crashes and ANRs easier to analyse and debug.

How can I upload the debug symbols? Is it necessary to change something in my Android project in Visual Studio?

Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-12-20T05:31:51.6366667+00:00

    Hello,

    How can I upload the debug symbols? Is it necessary to change something in my Android project in Visual Studio?

    You need to enable the R8 and set AndroidLinkMode=r8 to get the mapping.txt file from Debug symbols upload on Google Play Console for better crash information #5378 , after that you need to create a ZIP file containing the debug symbols .so files and push Zip file and mapping.text file to google play console.

    Firstly, please open your .csproj file add following properties.

    <PropertyGroup>
    
    ....
         <AndroidEnableR8>true</AndroidEnableR8>
          <AndroidLinkTool>r8</AndroidLinkTool> 
        
          <AndroidSupportedAbis>armeabi-v7a;arm64-v8a;x86;x86_64</AndroidSupportedAbis>
          <DebugType>portable</DebugType>
          <DebugSymbols>true</DebugSymbols> 
          <AndroidLinkMode>SdkOnly</AndroidLinkMode>
     </PropertyGroup>
    

    Then rebuild and release your application.

    You will find the native files (.so) in this path obj\Release\net8.0-android\app_shared_libraries And the mapping.textin this pathbin\Release\net8.0-android`.

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

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