java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams

Stack Overflow | maohieng | 3 months ago
  1. 0

    Upgrade Android Support library to 24.2.0 makes my app crash

    Stack Overflow | 3 months ago | maohieng
    java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams
  2. 0

    ClassCastException in FloatingActionButton

    Stack Overflow | 4 months ago | Shijil
    java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams
  3. 0

    Class cast exception

    GitHub | 2 months ago | Stanly-Mindssoft
    java.lang.ClassCastException: android.support.design.widget.AppBarLayout$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ViewPager within AppBarLayout does not work?

    Stack Overflow | 1 year ago | tgalfer
    java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams
  6. 0

    How to solve ClassCastException for LinearLayout.LayoutParams vs CoordinatorLayout.LayoutParams

    Stack Overflow | 3 months ago | Daniel Loaiza
    java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$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.view.ViewGroup$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams

      at android.support.design.widget.FloatingActionButton$Behavior.isBottomSheet()
    2. android.support.design
      CoordinatorLayout$OnPreDrawListener.onPreDraw
      1. android.support.design.widget.FloatingActionButton$Behavior.isBottomSheet(FloatingActionButton.java:597)
      2. android.support.design.widget.FloatingActionButton$Behavior.onDependentViewChanged(FloatingActionButton.java:589)
      3. android.support.design.widget.FloatingActionButton$Behavior.onDependentViewChanged(FloatingActionButton.java:528)
      4. android.support.design.widget.CoordinatorLayout.offsetChildToAnchor(CoordinatorLayout.java:1564)
      5. android.support.design.widget.CoordinatorLayout.onChildViewsChanged(CoordinatorLayout.java:1233)
      6. android.support.design.widget.CoordinatorLayout$OnPreDrawListener.onPreDraw(CoordinatorLayout.java:1812)
      6 frames