java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.support.v4.widget.DrawerLayout$LayoutParams

Stack Overflow | Xaloju | 7 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

    How to solve "RelativeLayout cannot be cast to a DrawerLayout" error?

    Stack Overflow | 7 months ago | Xaloju
    java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.support.v4.widget.DrawerLayout$LayoutParams
  2. 0

    how to add a buttons at the bottom of slide drawer menu in android?

    Stack Overflow | 2 years ago
    java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.support.v4.widget.DrawerLayout$LayoutParams
  3. 0

    Cast exception with android drawers

    Stack Overflow | 2 years ago
    java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.support.v4.widget.DrawerLayout$LayoutParams
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Fatal Error When Creating Navigation Drawer - RelativeLayout$LayoutParams cannot be cast to android.support.v4.widget.DrawerLayout$LayoutParams

    Stack Overflow | 2 years ago | Jackie Deezner
    java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.support.v4.widget.DrawerLayout$LayoutParams
  6. 0

    ClassCastException when integrating AdMob ads into my navigation drawer

    Stack Overflow | 2 years ago | Adam Staszak
    java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.support.v4.widget.DrawerLayout$LayoutParams

  1. Arne Jans 1 times, last 5 months ago
1 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.RelativeLayout$LayoutParams cannot be cast to android.support.v4.widget.DrawerLayout$LayoutParams

    at android.support.v4.widget.DrawerLayout.isDrawerView()
  2. Android Support v4
    DrawerLayout.isDrawerOpen
    1. android.support.v4.widget.DrawerLayout.isDrawerView(DrawerLayout.java:1415)
    2. android.support.v4.widget.DrawerLayout.isDrawerOpen(DrawerLayout.java:1677)
    2 frames
  3. acr.acr_app
    MenuPrincipalActivity.onOptionsItemSelected
    1. acr.acr_app.MenuPrincipalActivity.onOptionsItemSelected(MenuPrincipalActivity.java:161)
    1 frame
  4. Android Platform
    Activity.onMenuItemSelected
    1. android.app.Activity.onMenuItemSelected(Activity.java:2925)
    1 frame
  5. Android Support v4
    FragmentActivity.onMenuItemSelected
    1. android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:403)
    1 frame
  6. Android v7
    ToolbarWidgetWrapper$1.onClick
    1. android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:189)
    2. android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:100)
    3. android.support.v7.widget.ToolbarWidgetWrapper$1.onClick(ToolbarWidgetWrapper.java:192)
    3 frames
  7. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:4832)
    2. android.view.View$PerformClick.run(View.java:19844)
    3. android.os.Handler.handleCallback(Handler.java:739)
    4. android.os.Handler.dispatchMessage(Handler.java:95)
    5. android.os.Looper.loop(Looper.java:135)
    6. android.app.ActivityThread.main(ActivityThread.java:5319)
    6 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1016)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
    2 frames