我正在尝试将一个安卓应用发布到Google Play,但我得到了一个警告:
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.
我在一份文档中发现,我应该添加以下内容:
android.buildTypes.release.ndk.debugSymbolLevel = { SYMBOL_TABLE | FULL }
我应该在build.gradle
文件中添加一行,以及在另一个文档中指出需要添加什么。
android.defaultConfig.ndk.debugSymbolLevel = 'FULL'
添加到build.gradle
文件中的行。
哪个是正确的?
无论如何,都不起作用。
如果我按照文档字面意思将该行(原样)添加到build.gradle
中,我会收到Gradle
错误,因为它找不到 ndk
或debugSymbolLevel名称。
如果我将该行(原样)添加到
gradle.properties
中,则没有影响:出现相同大小的aab文件并出现警告。
如何完成?