gpt4 book ai didi

android - 由 : java. 引起 lang.ClassNotFoundException: 没有找到类 "android.webkit.SafeBrowsingResponse"

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:05:10 24 4
gpt4 key购买 nike

我在我的应用程序中使用 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com