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

Stack Overflow | Gravity G | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Fullscreen VideoView exception

    Stack Overflow | 6 months ago | Gravity G
    java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams
  2. 0

    java.lang.ClassCastException: GridLayout.LayoutParams cannot cast to Frame.LayoutParams

    Stack Overflow | 11 months ago | Paul
    java.lang.ClassCastException: android.widget.GridLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams
  3. 0

    LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams

    Stack Overflow | 4 years ago | Dani
    java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    XML Layout SERIOUSLY misbehaving

    Google Groups | 5 years ago | Spooky
    java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams
  6. 0

    LinearLayout and LayoutParams - Xamarin Forums

    xamarin.com | 1 year ago
    java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams
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.ClassCastException

    android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams

    at android.widget.FrameLayout.onMeasure()
  2. Android Platform
    FrameLayout.onMeasure
    1. android.widget.FrameLayout.onMeasure(FrameLayout.java:203)
    2. android.view.View.measure(View.java:20151)
    3. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    4. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    5. android.widget.LinearLayout.measureVertical(LinearLayout.java:747)
    6. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    7. android.view.View.measure(View.java:20151)
    8. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    9. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    10. android.widget.LinearLayout.measureVertical(LinearLayout.java:747)
    11. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    12. android.view.View.measure(View.java:20151)
    13. android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:716)
    14. android.widget.RelativeLayout.onMeasure(RelativeLayout.java:462)
    15. android.view.View.measure(View.java:20151)
    16. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    17. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    17 frames
  3. Android v7
    ContentFrameLayout.onMeasure
    1. android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
    1 frame
  4. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:20151)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    4. android.widget.LinearLayout.measureVertical(LinearLayout.java:747)
    5. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    6. android.view.View.measure(View.java:20151)
    7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    8. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    9. android.view.View.measure(View.java:20151)
    10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    11. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    12. android.widget.LinearLayout.measureVertical(LinearLayout.java:747)
    13. android.widget.LinearLayout.onMeasure(LinearLayout.java:629)
    14. android.view.View.measure(View.java:20151)
    15. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6328)
    16. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    16 frames
  5. Android
    PhoneWindow$DecorView.onMeasure
    1. com.android.internal.policy.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:3158)
    1 frame
  6. Android Platform
    ActivityThread.main
    1. android.view.View.measure(View.java:20151)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2594)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1549)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1841)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1437)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7397)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:920)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:695)
    9. android.view.Choreographer.doFrame(Choreographer.java:631)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906)
    11. android.os.Handler.handleCallback(Handler.java:739)
    12. android.os.Handler.dispatchMessage(Handler.java:95)
    13. android.os.Looper.loop(Looper.java:158)
    14. android.app.ActivityThread.main(ActivityThread.java:7224)
    14 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
    2 frames