My homeactivity.xml says: The following classes could not be created: - android.support.design.widget.CoordinatorLayout (Open Class, Show Exception, Clear Cache) - android.support.design.widget.AppBarLayout (Open Class, Show Exception , Clear Cache) - android.support.design.widget.FloatingActionButton (Open Class, Show Exception, Clear Cache)
Here is my code
<android.support.design.widget.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/AppBarOverlay"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="#ff4747" app:popupTheme="@style/PopupOverlay" /> <include layout="@layout/content_home" /> <android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|end" android:layout_margin="@dimen/fab_margin" android:src="@android:drawable/ic_dialog_email" android:background="#001f9c" /> </android.support.design.widget.AppBarLayout>
I do not know why this happened. Can anybody help?
source share