flutter 表示执行时崩溃

flutter symbolize crashes on execute

按照文档进行混淆 https://flutter.dev/docs/deployment/obfuscate

通过以下方式生成符号映射文件:

flutter build apk --shrink --obfuscate --release --split-debug-info=out/symbols

这似乎可以正确生成 3 个符号文件。 抛出异常并保存到文件后,当 运行 此命令时:

flutter symbolize --input=stacktrace.txt --debug-info=out/symbols/app.android-arm64.symbols

导致此错误:

Oops; flutter has exited unexpectedly: "type 'Utf8Decoder' is not a subtype of type 'StreamTransformer<Uint8List, String>' of 'streamTransformer'".

我没有看到任何关于此的已知问题。有解决方案或解决方法吗?

感谢任何帮助!

看起来这是刚刚发现并修复的

flutter symbolize is broken #55214 https://github.com/flutter/flutter/issues/55214

[flutter_tools] fix type error in symbolize #55212 https://github.com/flutter/flutter/pull/55212