作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我在我的应用程序中使用 WebView,同时加载内容警告日志来自 logcat,如下所示
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.webkit.SafeBrowsingResponse" on path: DexPathList[[zip file "/data/app/com.android.chrome-1/base.apk"],nativeLibraryDirectories=[/data/app/com.android.chrome-1/lib/arm, /data/app/com.android.chrome-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
在那个应用程序一次又一次崩溃之后
04-25 09:46:49.219 26505-26505/com.abc W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
04-25 09:46:49.219 26505-26505/com.abc W/google-breakpad: Chrome build fingerprint:
04-25 09:46:49.219 26505-26505/com.abc W/google-breakpad: 5.0.7lab
04-25 09:46:49.219 26505-26505/com.abc W/google-breakpad: 58
04-25 09:46:49.219 26505-26505/com.abc W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
04-25 09:46:49.219 26505-26505/com.whence A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xca480db0 in tid 26505 (com.whence)
[ 04-25 09:46:49.219 469: 469 W/ ]
debuggerd: handling request: pid=26505 uid=10314 gid=10314 tid=26505
最佳答案
问题的解决方法是:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
view.getSettings().setSafeBrowsingEnabled(false);
}
WebSettings settings = view.getSettings();
settings.setJavaScriptEnabled(true);
如果这对您不起作用,请告诉我。
关于android - 由 : java. 引起 lang.ClassNotFoundException: 没有找到类 "android.webkit.SafeBrowsingResponse",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50014031/
我在我的 Activity 中使用 webview。 我不知道什么时候,但我收到以下错误消息。 即使我搜索这个,我也没有太多信息。 虽然这不是一个严重的错误,但我想修复它,以免收到这样的消息。 如果有
我遇到了这个异常 "java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/SafeBrowsingResponse
我在我的应用程序中使用 WebView,同时加载内容警告日志来自 logcat,如下所示 Caused by: java.lang.ClassNotFoundException: Didn't fi
我是一名优秀的程序员,十分优秀!