I am newbie and trying to develop android app. I used following tutorial and everything is good (i.e. no error/red icon). http://developer.android.com/training/implementing-navigation/nav-drawer.html
However, on activity xml file I am getting following error: The following classes could not be instantiated: - android.support.v4.widget.DrawerLayout (Open Class, Show Exception)
I have searched google and stack overflow. Found similar issue, However no one answered for those. Assuming if someone faced same problem and managed to resolve.
Note: I am using Android-Studio.
Activty.xml have following flow:
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout" ...........
tools:context=".MyActivity">
<FrameLayout
android:id="@+id/content_frame"........
android:layout_alignParentEnd="true">
<EditText
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</FrameLayout>
<ListView android:id="@+id/left_drawer"
android:layout_width="240dp"........
android:background="#111"/>
</android.support.v4.widget.DrawerLayout>