webview 和 widget都是空指针
java.lang.NullPointerException: Attempt to invoke interface method 'void io.dcloud.common.DHInterface.IApp.setIAppStatusListener(io.dcloud.common.DHInterface.IApp$IAppStatusListener)' on a null object reference
10-06 15:38:34.710 27153-27153/com.shuto.mobile W/System.err: at com.shuto.webview.common.WebappModeListener.onCoreInitEnd(H5WebView.java:186)
10-06 15:38:34.710 27153-27153/com.shuto.mobile W/System.err: at io.dcloud.common.b.a.a(Core.java:159)
10-06 15:38:34.710 27153-27153/com.shuto.mobile W/System.err: at io.dcloud.common.b.b.a(PandoraEntryProxy.java:52)
10-06 15:38:34.710 27153-27153/com.shuto.mobile W/System.err: at io.dcloud.EntryProxy.onCreate(EntryProxy.java:96)
10-06 15:38:34.710 27153-27153/com.shuto.mobile W/System.err: at com.shuto.webview.common.H5WebView.onCreate(H5WebView.java:48)
10-06 15:38:34.710 27153-27153/com.shuto.mobile W/System.err: at android.app.Activity.performCreate(Activity.java:6864)
10-06 15:38:34.710 27153-27153/com.shuto.mobile W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
10-06 15:38:34.710 27153-27153/com.shuto.mobile W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2659)
10-06 15:38:34.710 27153-27153/com.shuto.mobile W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2767)
10-06 15:38:34.710 27153-27153/com.shuto.mobile W/System.err: at android.app.ActivityThread.-wrap12(ActivityThread.java)
10-06 15:38:34.710 27153-27153/com.shuto.mobile W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1514)
10-06 15:38:34.710 27153-27153/com.shuto.mobile W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
10-06 15:38:34.710 27153-27153/com.shuto.mobile W/System.err: at android.os.Looper.loop(Looper.java:163)
10-06 15:38:34.710 27153-27153/com.shuto.mobile W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6199)
10-06 15:38:34.710 27153-27153/com.shuto.mobile W/System.err: at java.lang.reflect.Method.invoke(Native Method)
10-06 15:38:34.710 27153-27153/com.shuto.mobile W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
10-06 15:38:34.710 27153-27153/com.shuto.mobile W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:791)
我是真不知道这是哪里报的 ,我用官方的例子测试是没问题的,放到我的AS原生项目中就空指针了。
0 个回复