Unexplainable ClassCastException in android.widget.ProgressBar.onRestoreInstanceState

后端 未结 7 1610
予麋鹿
予麋鹿 2020-12-29 19:21

I\'ve had my application out in the store for a while, but it seems it crashes occasionally according to the crash reports in the Developer Console, saying: java.lang.

相关标签:
7条回答
  • 2020-12-29 19:48

    I had a different issue: In one layout the root was a ScrollView while in the other the root was a RelativeView that contained the ScrollView. All widgets ids were identical and there were no duplicates. On rotate the crash log was:

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

    Once I matched the layouts (so in both the root was either the RelativeLayout or ScrollView), the rotation worked fine.

    Not sure why this would cause a crash so any insights would be appreciated...

    0 讨论(0)
提交回复
热议问题