873247376@qq.com
873247376@qq.com
  • 发布:2017-09-21 17:35
  • 更新:2019-07-11 23:22
  • 阅读:778

unregisterReceiver。关闭activity,大概4s才回调onDestroy;如果在这4s内打开activity,则会包这个错,onCoreInitEnd不会回调,因此白屏。

分类:5+ SDK

Activity com.lynnrichter.qcxg.dcloud.activity.DC_TJ_Activity has leaked IntentReceiver io.dcloud.common.a.d$4@2681b87 that was originally registered here. Are you missing a call to unregisterReceiver()?
android.app.IntentReceiverLeaked: Activity com.lynnrichter.qcxg.dcloud.activity.DC_TJ_Activity has leaked IntentReceiver io.dcloud.common.a.d$4@2681b87 that was originally registered here. Are you missing a call to unregisterReceiver()?
at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:926)
at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:723)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1182)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1162)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1156)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:564)
at io.dcloud.common.a.d.e(WebApp.java:1452)
at io.dcloud.common.a.d.a(WebApp.java:1990)
at io.dcloud.common.a.d.c(WebApp.java:1944)
at io.dcloud.common.a.a$3.onCallBack(AppMgr.java:627)
at io.dcloud.common.a.d.a(WebApp.java:1924)
at io.dcloud.common.a.a.a(AppMgr.java:617)
at io.dcloud.common.a.a.processEvent(AppMgr.java:448)
at io.dcloud.common.b.a.dispatchEvent(Core.java:538)
at io.dcloud.common.b.a.a(Core.java:390)
at io.dcloud.common.b.a.a(Core.java:351)
at io.dcloud.common.b.a.a(Core.java:594)
at io.dcloud.common.b.a.dispatchEvent(Core.java:531)
at io.dcloud.feature.internal.sdk.SDK.startWebApp(SDK.java:197)
at com.lynnrichter.qcxg.dcloud.activity.WebappModeListener.onCoreInitEnd(DC_TJ_Activity.java:253)
at io.dcloud.common.b.a.a(Core.java:159)
at io.dcloud.common.b.b.a(PandoraEntryProxy.java:52)
at io.dcloud.EntryProxy.onCreate(EntryProxy.java:96)
at com.lynnrichter.qcxg.dcloud.activity.DC_TJ_Activity.onCreate(DC_TJ_Activity.java:52)
at android.app.Activity.performCreate(Activity.java:6323)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2411)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2518)
at android.app.ActivityThread.access$1000(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1382)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:5544)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)

2017-09-21 17:35 分享
已邀请:
AngleTech@qq.com

AngleTech@qq.com

解决没?

要回复问题请先登录注册