在包 'AndroidApp.Droid' 中找不到属性 'MvxBind' 的资源标识符

No resource identifier found for attribute 'MvxBind' in package 'AndroidApp.Droid'

在我将菜单添加到应用程序并构建之前,该解决方案运行良好,但它给了我上述错误。我的代码如下:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:local="http://schemas.android.com/apk/res/AndroidApp.Droid"
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
<!-- The main content view -->
   <FrameLayout
       android:id="@+id/content_frame"
       android:layout_width="match_parent"
       android:layout_height="match_parent" />
    <Mvx.MvxListView
       local:MvxBind="ItemsSource MenuItems; ItemClick SelectMenuItemCommand"
       local:MvxItemTemplate="@layout/item_menu"
       android:id="@+id/left_drawer"
       android:divider="@android:color/transparent"
       android:dividerHeight="0dp"
       android:choiceMode="singleChoice"
       android:layout_width="240dp"
       android:layout_height="match_parent"
       android:layout_gravity="start"
       android:background="#111" />
 </LinearLayout>

有什么解决办法吗? 我努力了 1) xmlns:local="http://schemas.android.com/apk/res/AndroidApp.Droid" 和 2) xmlns:local="http://schemas.android.com/apk/res-auto 但它现在不起作用。 提前致谢。

一些问题,一些参考没有得到正确的,请清理并构建你的项目,如果仍然有问题,那么还要检查你的包名称。我希望这对你有用。

清单中的包名称必须与

相同
xmlns:local="http://schemas.android.com/apk/res/Sample.Android"