XML : No resource identifier found for attribute 'menu' in package in Android

No resource identifier found for attribute 'menu' in package in Android:

I'm getting this error in my layout xml file. I have the following libraries: android-support-v4.jar and android-support-v7-appcompat.jar in my project folder.

(Using Eclipse)

Here is my XML:

  <android.support.design.widget.NavigationView      android:id="@+id/navigation_view"      android:layout_height="match_parent"      android:layout_width="wrap_content"      android:layout_gravity="start"      app:headerLayout="@layout/header"      app:menu="@menu/drawer"      />    

Build.Gradle:

  compile 'com.android.support:design:22.2.0'    

I'd appreciate any sort of help! Thanks in advance!

PS: I'm using Eclipse Mars right now and I'm experiencing a lot of problems with building and importing external libraries. It's been way too much of a hassle so I'm thinking of switching to Android Studio. Please leave me any helpful advice with regards to this.

No comments:

Post a Comment