Help us understand the problem. What is going on with this article?

logcatにでてきたエラー

More than 5 years have passed since last update.
ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.support.v4.widget.DrawerLayout$LayoutParams

1.パスが通っていない
2.クラス名のスペルミス
3.そもそもクラスファイル(.class)が存在していない

この時は結局activity_main.xmlの下記の挿入場所が異なっていたのが原因

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity"
    android:background="#ffff3e34">
JimmyReo
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away