Flutter:如何去混淆堆栈跟踪?

Flutter: How to deobfuscate a stack trace?

我正在尝试使用命令对 flutter 堆栈跟踪进行去混淆处理,其中 err.txt 是我的堆栈跟踪文件 -

flutter symbolize -i err.txt -d /out/android/app.android-arm64.symbols

但是,在 运行 我收到一个错误,我需要一个名为 app.android-arm64.symbols 的文件来对我的堆栈跟踪进行去混淆处理,但我不知道在哪里可以找到这个文件,因为这在 Flutter 文档中没有明确提及。这是我得到的错误:

 /out/android/app.android-arm64.symbols does not exist

有人可以帮我解决这个问题吗?

符号是在构建 apk/bundle 时生成的,因此您可以在那里查看。

flutter build apk --obfuscate --split-debug-info=/<project-name>/<directory>
Firstly for obfuscation you need to run this command - > 
flutter build apk --obfuscate --split-debug-info=/<project-name>/<directory>
https://docs.flutter.dev/deployment/obfuscate

With this command the symbol files will be generated in the path which you have mentioned in the obfuscated command,
Then Create a txt file in your project and copy the obfuscated stacktrace in that file..

then follow this -> https://github.com/FirebaseExtended/flutterfire/issues/2644 , Which says Remove (.java) and add 4 spaces
Then Run this command - > 
flutter symbolize -i <stack trace file> -d /out/android/app.android-arm64.symbols