Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
706 views
in Technique[技术] by (71.8m points)

android - How to debug a Flutter app's crash from the provided stack trace in Google Play Console?

I have published a Flutter app on Play Store that reports crashes from time to time. To build it for release, I used obfuscation as described here with the command:

flutter build apk --obfuscate --split-debug-info=build/app/outputs/symbols

Now in Play Console I get a stack trace from an occurring crash like:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.package.name <<<

backtrace:
  #00  pc 00000000000744b0  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160)
  #00  pc 00000000002bc350  /data/app/com.package.name-CelqfOPR1qgCAOmLM1XLVg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0x5cc000)
  #00  pc 00000000002b29c0  /data/app/com.package.name-CelqfOPR1qgCAOmLM1XLVg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libflutter.so (offset 0x5cc000)
  #00  pc 0000000000000001  <unknown>

where 'package.name' is the package name of my app.

How do I deobfuscate/symbolize this stack trace?

I already tried using the flutter symbolize command for the appropriate architecture, as recommended:

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

but it just prints again the err.txt file (the stack trace).

Is there something I am missing in the whole process of debugging Flutter crash reports on Android?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...