java.lang.IllegalStateException: Activity has been destroyed

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by SpeedEX505
, 2 years ago
Activity has been destroyed
via Stack Overflow by Alberto Rollan
, 2 years ago
Activity has been destroyed
via Stack Overflow by Droid Beginner
, 2 years ago
via Stack Overflow by AnKing
, 6 months ago
java.lang.IllegalStateException: Activity has been destroyed
at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1549)
at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:654)
at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:621)
at android.view.View.dispatchAttachedToWindow(View.java:13491)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2713)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2720)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2720)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2720)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2720)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2720)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2720)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1367)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1126)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6041)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:792)
at android.view.Choreographer.doCallbacks(Choreographer.java:596)
at android.view.Choreographer.doFrame(Choreographer.java:557)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:778)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:155)
at android.app.ActivityThread.main(ActivityThread.java:5721)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)

Users with the same issue

Once, 1 year ago
2 times, 1 year ago
Once, 1 year ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.