fragment - Wrong state class, expecting View State but received class android.widget.CompoundButton$SavedState instead -


java.lang.illegalargumentexception: wrong state class, expecting view state received class android.widget.compoundbutton$savedstate instead. happens when 2 views of different type have same id in same hierarchy. view's id id/0x2. make sure other views not use same id.

its occurs when screen rotate , when when trying go fragment no id repeated plzz 1 me

i have resolve .... because of duplication of ids of view when add view dynamically , not set ids (with same text of radio button in case)

to resolve first check views u adding dynamically


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -