1***@qq.com
1***@qq.com
  • 发布:2023-10-07 17:52
  • 更新:2023-10-07 17:52
  • 阅读:346

安卓双屏异显在副屏打开网页

分类:uni-app

在副屏打开网页时报错有没有大佬知道怎么解决啊
E/weex: callModuleMethod >>> invoke module:DualScreen-Plugin, method:openSecondScreen failed. java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.taobao.weex.bridge.MethodInvoker.invoke(MethodInvoker.java:46)
at com.taobao.weex.bridge.NativeInvokeHelper.invoke(NativeInvokeHelper.java:87)
at com.taobao.weex.bridge.WXModuleManager.dispatchCallModuleMethod(WXModuleManager.java:249)
at com.taobao.weex.bridge.WXModuleManager.callModuleMethod(WXModuleManager.java:230)
at com.taobao.weex.bridge.WXBridgeManager.callModuleMethod(WXBridgeManager.java:527)
at com.taobao.weex.bridge.WXBridgeManager.callNativeModule(WXBridgeManager.java:709)
at com.taobao.weex.bridge.WXBridge.callNativeModule(WXBridge.java:408)
at com.taobao.weex.base.SystemMessageHandler.nativeRunWork(Native Method)
at com.taobao.weex.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:104)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: android.view.InflateException: Binary XML file line #8: Binary XML file line #8: Error inflating class android.webkit.WebView
Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class android.webkit.WebView
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
at android.view.LayoutInflater.createView(LayoutInflater.java:645)
at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:717)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:785)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:415)
at android.app.Dialog.setContentView(Dialog.java:519)
at com.test.dualscreen.DifferentDislay.onCreate(DifferentDislay.java:19)
at android.app.Dialog.dispatchOnCreate(Dialog.java:402)
at android.app.Dialog.show(Dialog.java:301)
at android.app.Presentation.show(Presentation.java:235)
at com.test.dualscreen.MainActivity.getScreenNum(MainActivity.java:40)
at com.test.dualscreen.dualScreenModule.openSecondScreen(dualScreenModule.java:37)
at java.lang.reflect.Method.invoke(Native Method)
at com.taobao.weex.bridge.MethodInvoker.invoke(MethodInvoker.java:46)
at com.taobao.weex.bridge.NativeInvokeHelper.invoke(NativeInvokeHelper.java:87)
at com.taobao.weex.bridge.WXModuleManager.dispatchCallModuleMethod(WXModuleManager.java:249)
at com.taobao.weex.bridge.WXModuleManager.callModuleMethod(WXModuleManager.java:230)
at com.taobao.weex.bridge.WXBridgeManager.callModuleMethod(WXBridgeManager.java:527)
at com.taobao.weex.bridge.WXBridgeManager.callNativeModule(WXBridgeManager.java:709)
at com.taobao.weex.bridge.WXBridge.callNativeModule(WXBridge.java:408)
at com.taobao.weex.base.SystemMessageHandler.nativeRunWork(Native Method)
at com.taobao.weex.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:104)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: java.lang.IllegalStateException: Calling View methods on another thread than the UI thread.
at com.android.webview.chromium.WebViewChromium.b(chromium-SystemWebViewGoogle.aab-stable-432409300:4)
at com.android.webview.chromium.WebViewChromium.init(chromium-SystemWebViewGoogle.aab-stable-432409300:15)
at android.webkit.WebView.<init>(WebVie

2023-10-07 17:52 负责人:无 分享
已邀请:

要回复问题请先登录注册