原生App中有一个Fragment界面是配置应用插件(打开应用插件即SDK.startWebApp(), 然后打开跳转到调用plus的H5界面),退出应用时则调用plus.runtime.quit(), 返回原生界面,低端机上打开几次就会出现先白屏然后闪退的情况,
请问下这个需要怎么优化?
闪退日志:
W/System.err: java.lang.NullPointerException: Attempt to invoke interface method 'boolean io.dcloud.common.DHInterface.IApp.needRefreshApp()' on a null object reference
06-14 14:57:28.289 32698-32698/com.ijuyou.qipaoxian W/System.err: at io.dcloud.common.b.b.d.n(DHFrameView.java:682)
06-14 14:57:28.289 32698-32698/com.ijuyou.qipaoxian W/System.err: at io.dcloud.common.b.b.d.g(DHFrameView.java:516)
06-14 14:57:28.289 32698-32698/com.ijuyou.qipaoxian W/System.err: at io.dcloud.common.b.b.d$2.a(DHFrameView.java:429)
06-14 14:57:28.289 32698-32698/com.ijuyou.qipaoxian W/System.err: at io.dcloud.common.b.b.d$2.a(DHFrameView.java:383)
06-14 14:57:28.289 32698-32698/com.ijuyou.qipaoxian W/System.err: at io.dcloud.common.b.b.d$2$1.run(DHFrameView.java:411)
06-14 14:57:28.289 32698-32698/com.ijuyou.qipaoxian W/System.err: at android.os.Handler.handleCallback(Handler.java:743)
06-14 14:57:28.289 32698-32698/com.ijuyou.qipaoxian W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
06-14 14:57:28.289 32698-32698/com.ijuyou.qipaoxian W/System.err: at android.os.Looper.loop(Looper.java:150)
06-14 14:57:28.289 32698-32698/com.ijuyou.qipaoxian W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5621)
06-14 14:57:28.289 32698-32698/com.ijuyou.qipaoxian W/System.err: at java.lang.reflect.Method.invoke(Native Method)
06-14 14:57:28.289 32698-32698/com.ijuyou.qipaoxian W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)
06-14 14:57:28.289 32698-32698/com.ijuyou.qipaoxian W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:684)
3 个回复
1***@qq.com
上课上课上课看
DCloud_Android_zl
麻烦提供一个简单的复现demo
1***@qq.com - poor-bird
我这边也遇到了,请问楼主怎么解决的,突然就有这个问题了,急急急