Strange exception in application

I recently placed the application on the market, and so far I have received 7 errors that look like this:

java.lang.IllegalArgumentException: Invalid state class awaiting View state, but got android.widget.ProgressBar $ SavedState class instead. This usually happens when two views of different types have the same identifier in the same hierarchy. This identifier is of the form id / 0x2. Ensure that other views do not use the same identifier.

Can someone tell me how to debug the problem? What is a View with id 0x2 - is there a way to find out?

+8
android exception
source share
2 answers

I got this error under the following conditions: I replace the item icon in the action bar (in my case, Tibetan for the update button), and while it is in this state, I rotate the device. This error occurs due to an attempt to restore the state of the saved view and notice the difference between the declared and serialized.

+3
source share

There should be a stack next to the report that can help you find the exact line of code.

0
source share

All Articles