Xml 未找到与给定名称匹配的资源(位于';菜单';处,值为';@menu/bottomnavigationmain';)

Xml 未找到与给定名称匹配的资源(位于';菜单';处,值为';@menu/bottomnavigationmain';),xml,visual-studio,xamarin,visual-studio-2015,xamarin.android,Xml,Visual Studio,Xamarin,Visual Studio 2015,Xamarin.android,我正在尝试制作一个botton导航,我正在遵循本教程。以下是我在axml文件中的代码: 文件:ly_homescreen.axml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" x

我正在尝试制作一个botton导航,我正在遵循本教程。以下是我在axml文件中的代码: 文件:ly_homescreen.axml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_centerVertical="true"
    android:layout_centerHorizontal="true"
    android:background="@color/colorPrimaryDark"
    android:minWidth="25px"
    android:minHeight="25px"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin">
    <LinearLayout
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/linearLayout1">
        <ImageView
            android:src="@drawable/logo"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:layout_margin="5dp"
            android:id="@+id/imageView1" />
        <FrameLayout
            android:id="@+id/content_frame"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_above="@+id/bottom_navigation" />
        <android.support.design.widget.BottomNavigationView
            android:id="@+id/bottom_navigation"
            android:layout_width="match_parent"
            android:layout_height="56dp"
            android:layout_gravity="start"
            android:layout_alignParentBottom="true"
            android:background="@android:color/white"
            app:elevation="16dp"
            app:menu="@menu/bottomnavigationmain" />
    </LinearLayout>
</RelativeLayout>

打开bottomnavigationmain.xml的属性,将BuildAction从Content更改为AndroidResource

 @(Content) build action is not supported.