java.lang.IllegalArgumentException: Wrong state class, 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/tab_notifications. Make sure other views do not use the same id.

GitHub | grestuccia1 | 3 months ago
  1. 0

    GitHub comment 480#244627873

    GitHub | 3 months ago | grestuccia1
    java.lang.IllegalArgumentException: Wrong state class, 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/tab_notifications. Make sure other views do not use the same id.
  2. 0

    [BUG] Exception when activity re-create (on rotate)

    GitHub | 3 months ago | giautm
    java.lang.RuntimeException: Unable to start activity ComponentInfo{[REMOVED]/[REMOVED].activities.MainActivity}: java.lang.IllegalArgumentException: Wrong state class, 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/lm_bottom_bar_recents. Make sure other views do not use the same id.
  3. 0

    RuntimeException in EditPostActivity

    GitHub | 3 years ago | roundhill
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.wordpress.android/org.wordpress.android.ui.posts.EditPostActivity}: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.view.View$BaseSavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/pager. 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

    Issue 38424 - android - freezesText crash on orientation change in PreferenceActivity - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 1 year ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.com.exmple.android/com.example.com.exmple.android.PreferencesActivity}: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.widget.TextView$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/title. Make sure other views do not use the same id.
  6. 0

    Possible Improper State Saving

    GitHub | 2 years ago | marcoRS
    java.lang.RuntimeException: Unable to start activity ComponentInfo{re.snapwi.android/re.snapwi.ui.HomeActivity}: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.view.View$BaseSavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/gigSlidingLayout. Make sure other views do not use the same id.
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.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/tab_notifications. Make sure other views do not use the same id.

    at android.view.View.onRestoreInstanceState()
  2. Android Platform
    View.onRestoreInstanceState
    1. android.view.View.onRestoreInstanceState(View.java:12036)
    1 frame
  3. com.roughike.bottombar
    BottomBarTab.onRestoreInstanceState
    1. com.roughike.bottombar.BottomBarTab.onRestoreInstanceState(BottomBarTab.java:555)
    1 frame
  4. Android Platform
    View.restoreHierarchyState
    1. android.view.View.dispatchRestoreInstanceState(View.java:12012)
    2. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2645)
    3. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2651)
    4. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2651)
    5. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2651)
    6. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2651)
    7. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2651)
    8. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2651)
    9. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2651)
    10. android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2651)
    11. android.view.View.restoreHierarchyState(View.java:11990)
    11 frames
  5. Android
    PhoneWindow.restoreHierarchyState
    1. com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:1826)
    1 frame
  6. Android Platform
    ActivityThread.main
    1. android.app.Activity.onRestoreInstanceState(Activity.java:949)
    2. android.app.Activity.performRestoreInstanceState(Activity.java:921)
    3. android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1145)
    4. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2070)
    5. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2117)
    6. android.app.ActivityThread.access$700(ActivityThread.java:134)
    7. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1218)
    8. android.os.Handler.dispatchMessage(Handler.java:99)
    9. android.os.Looper.loop(Looper.java:137)
    10. android.app.ActivityThread.main(ActivityThread.java:4867)
    10 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Method.java)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
    2 frames
  9. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(NativeStart.java)
    1 frame