java.lang.ClassCastException: android.widget.FrameLayout cannot be cast to android.widget.LinearLayout

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by hypest
, 1 year ago
android.widget.FrameLayout cannot be cast to android.widget.LinearLayout
java.lang.ClassCastException: android.widget.FrameLayout cannot be cast to android.widget.LinearLayout
at org.wordpress.android.util.WPActivityUtils.removeToolbarFromDialog(WPActivityUtils.java:78)
at org.wordpress.android.ui.prefs.SiteSettingsFragment.removeMoreScreenToolbar(SiteSettingsFragment.java:1219)
at org.wordpress.android.ui.prefs.SiteSettingsFragment.onSaveInstanceState(SiteSettingsFragment.java:337)
at android.app.Fragment.performSaveInstanceState(Fragment.java:2514)
at android.app.FragmentManagerImpl.saveFragmentBasicState(FragmentManager.java:1763)
at android.app.FragmentManagerImpl.saveAllState(FragmentManager.java:1820)
at android.app.FragmentController.saveAllState(FragmentController.java:112)
at android.app.Activity.performSaveInstanceState(Activity.java:1414)
at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1300)
at android.app.ActivityThread.callCallActivityOnSaveInstanceState(ActivityThread.java:4505)
at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:3827)
at android.app.ActivityThread.handleStopActivity(ActivityThread.java:3886)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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