【发布时间】:2021-01-24 13:49:32
【问题描述】:
Chrome for Android version 86.0.4240.75 几天前刚刚发布。部署刚刚开始,但我们看到使用该版本的 Chrome/Android System WebView 的设备上出现了新的崩溃,其数量正在直线上升。
val intent = Intent(Intent.ACTION_VIEW)
intent.setDataAndType(Uri.parse(url), "text/html")
intent.addCategory(Intent.CATEGORY_BROWSABLE)
startActivity(intent)
对于 any url,在使用版本 86.0.4240.75 的 any device 上,上述代码会因 ActivityNotFoundException 而崩溃:
android.content.ActivityNotFoundException: No Activity found to handle Intent
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1854)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1544)
似乎是 Chrome 中的一个错误,但有人找到解决方法了吗?
【问题讨论】:
标签: android android-webview android-chrome