0
引き出しレイアウトでナビゲーションビューを使用しようとしていますが、ファイルをビルドするときにエラーが発生し続けます。ナビゲーションビューアプリケーション:メニュービルドの階調エラー
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawerLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- The main content view -->
<FrameLayout
android:id="@+id/contentFrame"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<!-- The navigation drawer -->
<android.support.design.widget.NavigationView
android:id="@+id/navigationView"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
app:menu="@menu/navigation_items"
/>
</android.support.v4.widget.DrawerLayout>
これは、ビルドGradleのエラーにつながる:
は、ここに私のxmlは次のようになります。私のメニューは次のようになります:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<group android:checkableBehavior="single">
<item android:id="@+id/menu_bookmark"
android:title="Bookmark" />
<item android:id="@+id/menu_save"
android:title="Save" />
<item android:id="@+id/menu_search"
android:title="Search" />
<item android:id="@+id/menu_share"
android:title="Share" />
</group>
</menu>
ナビゲーションビューからapp:menuを削除すると、エラーが消えます。何が間違っていますか?