The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

+1 vote

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

Godot version 3.3
in Engine by (22 points)

1 Answer

+1 vote
Best answer

Hi :)

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 'yourprojectgodot/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:
https://stackoverflow.com/questions/63749162/android-version-release-warning-message-this-app-bundle-contains-java-kotlin-co

https://stackoverflow.com/questions/63373245/how-to-add-debug-symbols-to-build-gradle/63436935#63436935

by (98 points)
selected by

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

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 -> https://support.google.com/googleplay/android-developer/answer/9848633?hl=en#zippy=%2Cnative-generate-a-debug-symbols-file

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.