Wrong state class, expecting View State but received class android.widget.CompoundButton$SavedState instead
<p><code>java.lang.IllegalArgumentException: Wrong state class</code>, expecting View State but received <code>class android.widget.CompoundButton$SavedState</code> instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's <strong>id is id/0x2</strong>. Make sure other views do not use the same id.</p>

<p>its occurs when screen rotate and when when trying go back to the fragment no id is repeated plzz some one help me</p>