java.lang.IllegalStateException

Can not perform this action after onSaveInstanceState

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web380

  • via Stack Overflow by NiklasZeroZero
    ,
  • via GitHub by jjhesk
    ,
  • Stack trace

    • java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1493) at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1511) at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:638) at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:617) at com.wenming.weiswift.ui.login.activity.MainActivity.switchToFragment(MainActivity.java:236) at com.wenming.weiswift.ui.login.activity.MainActivity.setTabFragment(MainActivity.java:320) at com.wenming.weiswift.ui.login.activity.MainActivity.access$000(MainActivity.java:34) at com.wenming.weiswift.ui.login.activity.MainActivity$4.onClick(MainActivity.java:196) at android.view.View.performClick(View.java:5697) at android.view.View$PerformClick.run(View.java:22526) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7224) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:134)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    adawolfsadawolfs
    4 times, last one
    RajeshRajesh
    6 times, last one
    asvidasvid
    4 times, last one
    Unknown visitor
    Unknown visitorOnce,
    49 more bugmates