Skip to content Skip to sidebar Skip to footer

View.java Line 18891 Android.view.View.onRestoreInstanceState Exception

I am getting some exceptions in crashlytics. but not able find the file or cause of an exception. Also, I am getting different line number every time. I don't have much informatio

Solution 1:

Have u read the Crash report

expecting View State but received class android.os.Bundle instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/ivReceipt. Make sure other views do not use the same id. android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2955)

The report saying that in your ReceiptDetailActivity layout you have two different view containing same id ivReceipt

As per your below comment

Yes in that layout there is one included layout which contains same ivReceipt id

Solution don't use same ID Just change the id name it will work


Post a Comment for "View.java Line 18891 Android.view.View.onRestoreInstanceState Exception"