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 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.onSaveInstanceState(Activity.java:1485)	at android.support.v4.app.FragmentActivity.onSaveInstanceState(FragmentActivity.java:567)	at android.support.v7.app.AppCompatActivity.onSaveInstanceState(AppCompatActivity.java:511)	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)