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.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by giautm
, 1 year ago
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
via GitHub by BishopGIS
, 1 year ago
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.
via GitHub by KosunaKoizumi
, 7 months ago
android.support.design.widget.CustomBottomNavigationView$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/bottom_navigation. Make sure other views do not use the same id.
via GitHub by jcnoir
, 11 months ago
. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/noResultLayout. Make sure other views do not use the same id.
via GitHub by BishopGIS
, 1 year ago
Unable to start activity ComponentInfo{com.nextgis.safeforest/com.nextgis.safeforest.activity.MainActivity}: java.lang.IllegalArgumentException: No view found for id 0x7f0e009f (com.nextgis.safeforest:id/login_frame) for fragment LoginFragment{41db7498 #0 id=0x7f0e009f NGWLogin}
via Stack Overflow by anony
, 1 year ago
Unable to start activity ComponentInfo{.activities.MainActivity}: java.lang.NullPointerException
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.
at com.roughike.bottombar.BottomBarTab.onRestoreInstanceState(BottomBarTab.java:555)
at android.view.View.dispatchRestoreInstanceState(View.java:12974)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2756)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2762)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2762)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2762)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2762)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2762)
at android.support.v4.app.Fragment.restoreViewState(Fragment.java:477)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1135)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1290)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1272)
at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2149)
at android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:201)
at android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:178)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1174)
at android.app.Activity.performStart(Activity.java:5274)

Users with the same issue

2 times, 1 year ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
6 times, 1 year ago
2 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.