Closed nonameShijian closed 7 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
已兼容x86这种情况,可以运行demo看下
一个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