Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
未找到属性';MvxBind';包装内';AndroidApp.Droid';_Android_Xamarin_Mvvmcross - Fatal编程技术网

未找到属性';MvxBind';包装内';AndroidApp.Droid';

未找到属性';MvxBind';包装内';AndroidApp.Droid';,android,xamarin,mvvmcross,Android,Xamarin,Mvvmcross,解决方案之前运行良好,直到我将菜单添加到应用程序和构建中,它给了我上述错误。我的代码如下: <?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:i

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

<?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"

您是否在Resources/Values文件夹中有文件MvxBindingAttributes.xml?默认情况下它应该在那里,但可能被意外删除。