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

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

    Eclipse Android Logcat cannot show all log

    Stack Overflow | 5 months ago | mobile app Beginner
    java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams
  2. 0

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

    Stack Overflow | 3 years ago | Dani
    java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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

  1. filpgame 6 times, last 4 months ago
  2. Bardh 1 times, last 8 months ago
7 unregistered visitors
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:437)
    2. android.view.View.measure(View.java:17547)
    3. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
    4. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
    5. android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
    6. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
    7. android.view.View.measure(View.java:17547)
    8. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
    9. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
    10. android.view.View.measure(View.java:17547)
    11. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
    12. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
    13. android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
    14. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
    15. android.view.View.measure(View.java:17547)
    16. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
    17. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
    18. android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
    19. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
    20. android.view.View.measure(View.java:17547)
    21. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
    22. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
    23. android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
    24. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
    25. android.view.View.measure(View.java:17547)
    26. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
    27. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
    28. android.view.View.measure(View.java:17547)
    29. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
    30. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
    31. android.view.View.measure(View.java:17547)
    32. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
    33. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
    34. android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
    35. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
    36. android.view.View.measure(View.java:17547)
    37. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
    38. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
    39. android.view.View.measure(View.java:17547)
    40. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
    41. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
    42. android.view.View.measure(View.java:17547)
    43. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
    44. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
    45. android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
    46. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
    47. android.view.View.measure(View.java:17547)
    48. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
    49. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
    49 frames
  3. Android
    PhoneWindow$DecorView.onMeasure
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2615)
    1 frame
  4. Android Platform
    Choreographer.doFrame
    1. android.view.View.measure(View.java:17547)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2015)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1173)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1379)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5885)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:580)
    9. android.view.Choreographer.doFrame(Choreographer.java:550)
    9 frames