该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
打开报错,怎么办?
以下是报错信息
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.widget.noname_android/com.widget.noname_android.MainActivity}: java.lang.RuntimeException: Failed to create webview.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2568)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2634)
at android.app.ActivityThread.access$1000(ActivityThread.java:180)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1492)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5791)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)
Caused by: java.lang.RuntimeException: Failed to create webview.
at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:81)
at org.apache.cordova.CordovaActivity.makeWebViewEngine(CordovaActivity.java:206)
at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:202)
at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:146)
at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:224)
at com.widget.noname_android.MainActivity.onCreate(MainActivity.java:39)
at android.app.Activity.performCreate(Activity.java:6288)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2521)
... 9 more
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance(Native Method)
at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:79)
... 17 more
Caused by: android.util.AndroidRuntimeException: java.lang.reflect.InvocationTargetException
at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:169)
at android.webkit.WebView.getFactory(WebView.java:2529)
at android.webkit.WebView.ensureProviderCreated(WebView.java:2524)
at android.webkit.WebView.setOverScrollMode(WebView.java:2589)
at android.view.View.(View.java:3832)
at android.view.View.(View.java:3945)
at android.view.ViewGroup.(ViewGroup.java:599)
at android.widget.AbsoluteLayout.(AbsoluteLayout.java:55)
at android.webkit.WebView.(WebView.java:651)
at android.webkit.WebView.(WebView.java:596)
at android.webkit.WebView.(WebView.java:579)
at android.webkit.WebView.(WebView.java:566)
at org.apache.cordova.engine.SystemWebView.(SystemWebView.java:47)
at org.apache.cordova.engine.SystemWebView.(SystemWebView.java:43)
at org.apache.cordova.engine.SystemWebViewEngine.(SystemWebViewEngine.java:76)
... 19 more
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:163)
... 33 more
Caused by: java.lang.RuntimeException: Cannot load WebView
at com.android.webview.chromium.WebViewChromiumFactoryProvider.initialize(WebViewChromiumFactoryProvider.java:75)
at com.android.webview.chromium.WebViewChromiumFactoryProvider.(WebViewChromiumFactoryProvider.java:31)
... 35 more
Caused by: org.chromium.base.library_loader.ProcessInitException
at org.chromium.base.library_loader.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:71)
at org.chromium.base.library_loader.LibraryLoader.loadNowOverrideApplicationContext(LibraryLoader.java:25)
at com.android.webview.chromium.WebViewChromiumFactoryProvider.initialize(WebViewChromiumFactoryProvider.java:69)
... 36 more
Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.google.android.webview-2/lib/arm/libwebviewchromium.so" is 32-bit instead of 64-bit
at java.lang.Runtime.loadLibrary(Runtime.java:372)
at java.lang.System.loadLibrary(System.java:1076)
at org.chromium.base.library_loader.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:55)
... 38 more