java.lang.RuntimeException: Unable to start activity ComponentInfo{life.poa.webcastman.myapplication/life.poa.webcastman.myapplication.MainActivity}: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.widget.CompoundButton$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/0x0. Make sure other views do not use the same id.

  1. 0

    Android dynamic buttons and checkbox getting id0x0 on rotate

    Stack Overflow | 3 months ago | Mattie Voohies
    java.lang.RuntimeException: Unable to start activity ComponentInfo{life.poa.webcastman.myapplication/life.poa.webcastman.myapplication.MainActivity}: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.widget.CompoundButton$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/0x0. Make sure other views do not use the same id.
  2. 0

    GitHub comment 7#173711280

    GitHub | 10 months ago | Luparion
    java.lang.RuntimeException: Unable to start activity ComponentInfo{de.codecrafters.tableviewexample/de.codecrafters.tableviewexample.MainActivity}: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.widget.AbsListView$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/tableView. Make sure other views do not use the same id.
  3. 0

    Crash on orientation change / restore instance state

    GitHub | 10 months ago | siimav
    java.lang.RuntimeException: Unable to start activity ComponentInfo{de.codecrafters.tableviewexample/de.codecrafters.tableviewexample.MainActivity}: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.widget.AbsListView$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/tableView. Make sure other views do not use the same id.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error in Samples->ABS:Styled while reloading + change display orientation

    GitHub | 4 years ago | jompro
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.actionbarsherlock.sample.styled/com.actionbarsherlock.sample.styled.MainActivity}: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.widget.ProgressBar$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/menu_refresh. Make sure other views do not use the same id.
  6. 0

    Android app crashes on orientation change java.lang.IllegalArgumentException: Wrong state class -- expecting View State

    Stack Overflow | 6 years ago | Gary Rowell
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.project.accessible/org.project.accessible.RegisterScreen}: java.lang.IllegalArgumentException: Wrong state class -- expecting View State

  1. maxxi 6 times, last 1 month ago
  2. martyn 1 times, last 7 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Wrong state class, expecting View State but received class android.widget.CompoundButton$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/0x0. Make sure other views do not use the same id.

    at android.view.View.onRestoreInstanceState()
  2. Android Platform
    View.restoreHierarchyState
    1. android.view.View.onRestoreInstanceState(View.java:13764)
    2. android.widget.TextView.onRestoreInstanceState(TextView.java:3781)
    3. android.view.View.dispatchRestoreInstanceState(View.java:13740)
    4. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2893)
    5. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2893)
    6. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2893)
    7. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2893)
    8. android.view.View.restoreHierarchyState(View.java:13718)
    8 frames
  3. Android
    PhoneWindow.restoreHierarchyState
    1. com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:2009)
    1 frame
  4. Android Platform
    ActivityThread.performLaunchActivity
    1. android.app.Activity.onRestoreInstanceState(Activity.java:1023)
    2. android.app.Activity.performRestoreInstanceState(Activity.java:978)
    3. android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1162)
    4. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298)
    4 frames