java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jlmaychinny.app.cashbilis/com.jlmaychinny.app.cashbilis.Activities.MainActivity}: java.lang.ClassCastException: android.support.v4.widget.DrawerLayout cannot be cast to android.widget.FrameLayout

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 gunZ333
, 10 months ago
Unable to start activity ComponentInfo{com.jlmaychinny.app.cashbilis/com.jlmaychinny.app.cashbilis.Activities.MainActivity}: java.lang.ClassCastException: android.support.v4.widget.DrawerLayout cannot be cast to android.widget.FrameLayout
via Stack Overflow by peer
, 2 years ago
Unable to start activity ComponentInfo{com.support.android.designlibdemo/com.support.android.designlibdemo.MainActivity}: java.lang.ClassCastException: android.support.v4.widget.DrawerLayout$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams
via dahuatu.com by Unknown author, 2 years ago
Unable to start activity ComponentInfo{com.example.dexter.contentpro/com.example.dexter.contentpro.MainActivity}: java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.widget.RelativeLayout$LayoutParams
via iswwwup.com by Unknown author, 2 years ago
Unable to start activity ComponentInfo{com.example.dexter.contentpro/com.example.dexter.contentpro.MainActivity}: java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.widget.RelativeLayout$LayoutParams
via GitHub by devashishmamgain
, 2 years ago
Unable to start activity ComponentInfo{com.mobicomkit.sample/com.applozic.mobicomkit.uiwidgets.people.activity.MobiComKitPeopleActivity}: java.lang.ClassCastException: com.applozic.mobicomkit.uiwidgets.contacts.fragment.AppContactFragment cannot be cast to com.applozic.mobicomkit.uiwidgets.people.fragment.ContactsListFragment
via GitHub by thehijjt
, 1 year ago
Unable to start activity ComponentInfo{org.kegbot.app/org.kegbot.app.SettingsActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
java.lang.ClassCastException: android.support.v4.widget.DrawerLayout cannot be cast to android.widget.FrameLayout
at com.jlmaychinny.app.cashbilis.Activities.BaseActivity.setContentView(BaseActivity.java:36)
at com.jlmaychinny.app.cashbilis.Activities.MainActivity.onCreate(MainActivity.java:13)
at android.app.Activity.performCreate(Activity.java:6092)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1112)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2481)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2608)
at android.app.ActivityThread.access$800(ActivityThread.java:178)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1470)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5637)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.