什么是 Android 调试符号以及如何在 Flutter 应用程序中配置它 更新:

问题描述

我正在尝试使用应用程序包首次在 play.google.com 上发布 Android 应用程序。该应用程序使用 Flutter SDK 在 Android Studio 中实现,并使用以下命令生成包:

Flutter build appbundle

当我将捆绑包上传到 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. 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.

我观察到很多人提出了类似的问题,但我无法弄清楚这个问题的确切原因以及如何解决这个问题。

enter image description here

更新:

通过如下修改root_app_dir/android/app/build.gradel

buildTypes {
        release {
            signingConfig signingConfigs.release
            ndk {
                debugSymbolLevel 'FULL'
            }
        }
    }

开始给我以下错误

* What went wrong:                                                      
Execution Failed for task ':app:extractReleaseNativeDebugMetadata'.     
> NDK is not installed     

解决方法

重复 here 去寻找“如果谈论 Flutter...”的答案

但是你不必太担心它只是警告,我已经上传了多个带有相同警告的 flutter 应用程序并且它工作得很好。

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...