9***@qq.com
webview集成方式可以集成两次吗,原有的原生APP有两个地方需要用到webview集成,我试过用Fragment集成一个成功了,但是两个Fragment的就报错,错误信息:java.lang.NullPointerException: Attempt to invoke interface method 'void io.dcloud.common.DHInterface.IWebview.onRootViewGlobalLayout(android.view.View)' on a null object reference
at com.yunji.kangaroolive.function.testPage.widget.MyIWebViewModeListener$1.onGlobalLayout(MyIWebViewModeListener.java:38)
at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:912)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2153)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1292)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6368)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:873)
at android.view.Choreographer.doCallbacks(Choreographer.java:685)
at android.view.Choreographer.doFrame(Choreographer.java:621)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:859)
at android.os.Handler.handleCallback(Handler.java:754)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:163)
at android.app.ActivityThread.main(ActivityThread.java:6321)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)。
求解
2018-03-07 14:35
127 个评论
要回复文章请先登录或注册
李涛110qq
4***@qq.com
9***@qq.com
9***@qq.com
x***@163.com
1***@qq.com
gyq
不眠僧
4***@qq.com
Johnson