3

I'm trying to upload my bundle Flutter app to Google Play from my Mac, but I'm getting a warning about adding "debug symbols":

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

According to this answer, I need to zip the three folders and upload it as a "debug symbols".

However, I'm getting the above error when trying to upload the compressed files:

The native debug symbols contain an invalid directory __MACOSX. Only Android ABIs are supported.

What is the problem? What should I do?

genericUser
  • 4,417
  • 1
  • 28
  • 73

1 Answers1

8

I have solved the issue by deleting all __MACOSX folders from my zip.

After compressing your arm64-v8a, armeabi-v7a and x86_64 folders, run the above command to get rid of the Mac __MACOSX files:

zip -d Archive.zip "__MACOSX*"

Then you can upload the .zip symbol file to Google Play Console.

genericUser
  • 4,417
  • 1
  • 28
  • 73
  • 2
    This worked for me. I'm using Gradle 8.2 in my Flutter 3 project and I've tried all solutions from internet to automate a script in build.gradle and to avoid to do this task manually. But there is no solution for the moment and the old script is not working anymore. I mean this: https://stackoverflow.com/questions/63373245/how-to-add-debug-symbols-to-build-gradle – Florentin Lupascu Jul 26 '23 at 09:49