webview访问 ClassLoader referenced
2019-05-31 本文已影响0人
itwillrain
webview 初始化报错 warming
ClassLoader referenced unknown path: /system/app/WebViewGoogle/lib/arm64
[ERROR:instance.cc(49)] Unable to locate service manifest for metrics
[ERROR:service_manager.cc(890)] Failed to resolve service name: metrics
Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.WebViewContentsClientAdapter$7>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/RenderProcessGoneDetail;
解决方法
build.gradle配置ndk {abiFilters "armeabi", "armeabi-v7a", "x86"}不要配64位,基于你的项目;甚至可以只保留armeabi或armeabi-v7a;