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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.
java.lang.IllegalStateException: Activity has been destroyed
at android.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1352)
at android.app.BackStackRecord.commitInternal(BackStackRecord.java:597)
at android.app.BackStackRecord.commit(BackStackRecord.java:575)
at com.nbsp.materialfilepicker.ui.FilePickerActivity.addFragmentToBackStack(FilePickerActivity.java:136)
at com.nbsp.materialfilepicker.ui.FilePickerActivity.handleFileClicked(FilePickerActivity.java:180)
at com.nbsp.materialfilepicker.ui.FilePickerActivity.access$000(FilePickerActivity.java:24)
at com.nbsp.materialfilepicker.ui.FilePickerActivity$1.run(FilePickerActivity.java:173)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:212)
at android.app.ActivityThread.main(ActivityThread.java:5135)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 5 months ago
52 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 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.