Some warning when uploading game in google play store?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rizalma

Godot version : 3.3
OS : Windows
Export : Android Custom Build

Hi,
I upload my game in google play console in closed testing, but there are 2 warning, which is:

Warning
This App Bundle contains Java/Kotlin code, which might be obfuscated. We recommend you upload a deobfuscation file to make your crashes and ANRs easier to analyze and debug

Warning
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

How to fix these? Thank you

:bust_in_silhouette: Reply From: LuizTM

Hi :slight_smile:

I am newbie in dvelopment and publication of app too godot engine, but you can try to rebuild your app again with some configs addiotional in your build.gradle, inside android plugin template.

in ‘your_project_godot/android/build/build.gradle’ of you game project:

‘’'build.gradle

android {
....

    buildTypes {
            release {
                minifyEnabled true
                proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
                ndk {
                    debugSymbolLevel 'SYMBOL_TABLE'
                }
            }
        }

...

references that you can look:

it seems i cant build it, it says error


A problem occurred evaluating root project 'build'.
No signature of method: build_bfjsdjqqt1jhull4hwbra2jh6.android() is applicable for argument types: (build_bfjsdjqqt1jhull4hwbra2jh6$_run_closure3) values: [build_bfjsdjqqt1jhull4hwbra2jh6$_run_closure3@4e00db3a]

my build.gradle is

android {
...

buildTypes {

    ...

    release {
        // ADDED
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        ndk {
            debugSymbolLevel 'SYMBOL_TABLE'
        }

        // Signing and zip-aligning are skipped for prebuilt builds, but
        // performed for custom builds.
        zipAlignEnabled shouldZipAlign()
        if (shouldSign()) {
            signingConfig signingConfigs.release
        } else {
            signingConfig null
        }
    }
}

it seems the error part is in:

        ndk {
            debugSymbolLevel 'SYMBOL_TABLE'
        }

when i try to remove it, the build is succesfull

rizalma | 2021-05-08 04:18

Hi,

Using Android custom Build, you can check whether tha folder build stayed generate? I look of documentation google about native symbols to play console, and the version AGP android used by godot can be of problem that “debugSymbolLevel ‘SYMBOL_TABLE’” not working.

look → Deobfuscate or symbolicate crash stack traces - Play Console Help

AGP 4.0.1 (android gradle plugin) from godot → https://github.com/godotengine/godot/blob/master/platform/android/java/app/config.gradle

LuizTM | 2021-05-08 07:56