java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to android.support.v7.widget.Toolbar$SavedState

后端 未结 4 712
情话喂你
情话喂你 2020-12-06 06:33

My app gets crashed frequently when it goes from background to foreground. Scenerio: Suppose iam playing any games and my app is in recent list and after playing,if i select

4条回答
  •  臣服心动
    2020-12-06 07:34

    In my case i have layout in my screen with ChipGroup and chips without id's. Then if I return to this screen from other's - I got this error "java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to android.widget.CompoundButton$SavedState". So just added id's to chip's and all works fine.

提交回复
热议问题