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 Stack Overflow by mobile app Beginner
, 1 year ago
android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams
via GitHub by renclav
, 2 years ago
com.android.internal.view.menu.ActionMenuView$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams
via Stack Overflow by Gravity G
, 1 year ago
android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams
via Stack Overflow by Dani
, 1 year ago
android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams
via GitHub by andrewlord1990
, 1 year ago
android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams
java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams	at android.widget.FrameLayout.onMeasure(FrameLayout.java:437)	at android.view.View.measure(View.java:17547)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)	at android.view.View.measure(View.java:17547)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)	at android.view.View.measure(View.java:17547)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)	at android.view.View.measure(View.java:17547)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)	at android.view.View.measure(View.java:17547)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)	at android.view.View.measure(View.java:17547)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)	at android.view.View.measure(View.java:17547)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)	at android.view.View.measure(View.java:17547)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)	at android.view.View.measure(View.java:17547)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)	at android.view.View.measure(View.java:17547)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)	at android.view.View.measure(View.java:17547)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)	at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)	at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)	at android.view.View.measure(View.java:17547)	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)	at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)	at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2615)	at android.view.View.measure(View.java:17547)	at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2015)	at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1173)	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1379)	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061)	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5885)	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)	at android.view.Choreographer.doCallbacks(Choreographer.java:580)	at android.view.Choreographer.doFrame(Choreographer.java:550)