如何解决 App 运行 Android 11 (SDK 30) 中的崩溃问题

How to troubleshoot Crash in App Running Android 11 (SDK 30)

我从未见过这样的堆栈跟踪,也不知道如何进行故障排除。 Android 10 (SDK 29) 或更早版本中没有发生。该应用程序使用 androidx 支持库和 SDK 30 构建。

phone发生的地方:

Samsung Note 10+ 5G running on SDK 30

不胜感激。

这就是我能从 PlayStore 得到的全部内容:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> app-package-name <<<

backtrace:
  #00  pc 00000000038621f0  /data/app/~~dDiCj_8810kb6DPfFJq1VA==/com.google.android.trichromelibrary_438909034-1CcX13lT2sfyKsCGVu4mkA==/base.apk!libmonochrome_64.so (offset 0x646000)

正如@Morrison Chang 和@Tink 在评论中指出的那样,崩溃与 Android 系统 WebView 有关,可以在 Play 商店的以下位置找到:

https://play.google.com/store/apps/details?id=com.google.android.webview

就我而言,在我使用 Google 已于 03/22 推送到 Play 商店的版本更新上述应用后,问题已得到解决。

即使我的应用程序不直接使用 WebView,我的应用程序所依赖的 Android 和 Samsung 库中也可能存在依赖项。

Google 宣布 an incident for their own Gmail App. Users cannot launch the App. And it's related to the Android System WebView, which is more like a component for Android system but can be updated via Google Play。 该问题于 21 年 3 月 23 日 7:05 上午报告 但是这个问题超出了 Google 的想象。不仅 Gmail 应用程序会崩溃,许多其他应用程序也会崩溃。 Reddit thread for this.

不幸的是,我们的 App 就是其中之一,我们看到实时崩溃数字先升后降。我们有很多用户抱怨这一点。他们只是无法打开我们的应用程序。

幸运的是,Google 修复了他们的错误,如果用户在 Google Play 中更新他们的 Android System WebView 应用,一切都会好起来的。

我们没有在 Firebase Crashlytics 中发现此崩溃,但我们可以在 Google Play 控制台中看到它。实际上,我对这个崩溃日志一无所知。我必须 Google 看看它是只适合我还是适合所有人。感谢您在这里发布这个问题,让我知道我并不孤单。