Unexplainable ClassCastException in android.widget.ProgressBar.onRestoreInstanceState

后端 未结 7 1644
予麋鹿
予麋鹿 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:39

    I've seen similar issues to this before, and it's because you have two id's that share the same name.

    The onRestoreInstanceState has performed the findViewById method and the first view to be found was not the ProgressView.

    Double check that your application does not reuse the same ID in two different places

提交回复
热议问题