当前位置: 代码迷 >> 综合 >> did not call finish() prior to onResume() completing
  详细解决方案

did not call finish() prior to onResume() completing

热度:40   发布时间:2024-01-10 07:22:52.0

异常信息:

java.lang.RuntimeException: Unable to resume activity

{com.ltgame.zhglm.niguang/com.heepay.plugin.activity.WeChatNotityActivity}:

java.lang.IllegalStateException: Activity {com.ltgame.zhglm.niguang/com.heepay.plugin.activity.WeChatNotityActivity}

did not call finish() prior to onResume() completing
    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3791)
    at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3832)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2994)
    at android.app.ActivityThread.-wrap14(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1631)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6682)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
Caused by: java.lang.IllegalStateException: Activity {com.ltgame.zhglm.niguang/com.heepay.plugin.activity.WeChatNotityActivity} did not call finish() prior to onResume() completing
    at android.app.Activity.performResume(Activity.java:7100)
    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3768)
    ... 10 more

修改方法1:(可用)

修改方法2:(未测试)

在Activity对应的Onpuse()函数中调用 finish()

  相关解决方案