JonaNorman / WebViewUpgrade

upgrade webview directly does not require install WebView Apk In Android. Android免安装升级WebView内核
Apache License 2.0
181 stars 15 forks source link

安卓8的虚拟机使用119版本的webview失败 #2

Closed nonameShijian closed 7 months ago

nonameShijian commented 8 months ago

一个tag是zygote的输出:

Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/TracingController;

Caused by: java.lang.ClassNotFoundException: Didn't find class "android.webkit.TracingController" on path: DexPathList[[zip file "/system/app/Chrome/Chrome.apk"],nativeLibraryDirectories=[/system/app/Chrome/lib/x86, /system/app/Chrome/Chrome.apk!/lib/x86, /system/lib, /vendor/lib, /system/lib, /vendor/lib]]

经过查找,是在new Webview(或其子类)时触发的问题。

且android.webkit.TracingController是于api 28添加,而虚拟机安卓8的api是26

虚拟机自带的webview是chrome.apk (69版本)而非谷歌webview

JonaNorman commented 7 months ago

已兼容x86这种情况,可以运行demo看下