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

问题描述:

解决方案运行良好,直到我将菜单添加到应用程序并构建,它给了我上面的错误。我的代码如下:在'AndroidApp.Droid'包中找不到属性'MvxBind'的资源标识符

<?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 但它现在不工作 在此先感谢

+0

您是否在_Resources/Values_文件夹中有文件_MvxBindingAttributes.xml_?它应该在默认情况下存在,但可能会被意外删除。 – Kiliman

一些方法,一些参考没有得到正确的,请清理并建立您的项目,如果仍然有问题,然后检查您的包名称也我希望这是对你有用。从清单

包名称必须相同与

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

enter image description here