致命异常:java.lang.IllegalStateException:提交已被调用

时间:2019-03-25 11:43:13

标签: android android-fragments fragmenttransaction

执行片段事务时出现错误

Fatal Exception: java.lang.IllegalStateException: commit already called
       at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:666)
       at android.support.v4.app.BackStackRecord.commitAllowingStateLoss(BackStackRecord.java:639)
       at com.mahindra.testdrive.Fragments.ScheduleFragment.moveToBookingDetails(ScheduleFragment.java:1911)
       at com.mahindra.testdrive.Fragments.ScheduleFragment.access$900(ScheduleFragment.java:93)
       at com.mahindra.testdrive.Fragments.ScheduleFragment$5$1.onItemClick(ScheduleFragment.java:1520)
       at android.widget.AdapterView.performItemClick(AdapterView.java:350)
       at android.widget.AbsListView.performItemClick(AbsListView.java:1674)
       at android.widget.AbsListView$PerformClick.run(AbsListView.java:4085)
       at android.widget.AbsListView$10.run(AbsListView.java:6573)
       at android.os.Handler.handleCallback(Handler.java:790)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:164)
       at android.app.ActivityThread.main(ActivityThread.java:7000)
       at java.lang.reflect.Method.invoke(Method.java)

0 个答案:

没有答案