Warning from Google Play Console (This App Bundle contains native code....) (Android / App Bundle file)
Asked Answered
E

1

6

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.

I am trying to resolve this issue, so I already added

defaultConfig {
        ...
        ...
        ...
        ndk.debugSymbolLevel = "FULL"
    }

But I still see this warning, so I try to add debugSymbolLevel in this way:

buildTypes {
        getByName("debug") {
            ...
            ...
            ...
        }

        getByName("release") {
            ...
            ...
            ...
            ndk {
                debugSymbolLevel = "full"
            }
        }
    }

And again, I still see this warning, so I can't understand how can I fix this issue. Please, could you provide more info to resolve it.

Thanks a lot :)

By the way:

  • Gradle plugin -> "8.1.1"
  • Gradle version -> "8.0.*"
Emotionalize answered 20/1 at 17:1 Comment(2)
Does this answer your question? How to add debug symbols to build.gradleBeget
No :( I already try this answers, but they don't help meEmotionalize
A
0

I want to share my experience related to this problem. First of all, we know there is a native code being used by our app since Google Play Console gives this error but when there is no native code, then there is no warning.

Task :app:mergeReleaseNativeLibs NO-SOURCE

Task :app:stripReleaseDebugSymbols NO-SOURCE

For example in above case on Android Studio, there is no native lib source, and because of that Google Play Console will not give any warning.

But, if there is a native code and that native code does not provide any debug symbols like (libandroidx.graphics.path.so) https://issuetracker.google.com/issues/356109544), then even you add the necessary configuration into your app, still Google Play Console gives this error.

Solution? Either remove the library dependency (at least in my case, I have achieved the same purpose without using library), or I guess you need to upload debug symbols by yourself into the Google Play Console.

Absorptivity answered 21/10 at 10:23 Comment(1)
Any suggestions on how to find the culprit library that is causing this? I've properly set up my gradle file but I still see this warning on Google Play. Running mergeReleaseNativeLibs gives me NO-SOURCE but stripReleaseDebugSymbols gives UP-TO-DATE, so I guess I do have some library causing issues.Dominic

© 2022 - 2024 — McMap. All rights reserved.