我用的是fragment,在onStop但是没有onDestroy的情况下切换(replace)fragment时报 java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState错误,出现问题原因,在于我使用了FragmentTransaction.commit,解决办法:使用FragmentTransaction.commitAllowingStateLoss就不会报错了
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState问题解决
最新推荐文章于 2022-02-06 20:35:04 发布