Android 如何修复错误:schemas属性将被忽略,因为您的文档未声明任何匹配的目标命名空间
使用Visual Studio 2015-Xamarin Android 当我将鼠标悬停在某个axml文件的LinearLayout元素上时,会收到此警告 “将忽略schemas属性,因为您的文档没有 声明任何匹配的目标命名空间。“ 当我右键单击xml文件并选择properties时,它显示选择的两个模式Android 如何修复错误:schemas属性将被忽略,因为您的文档未声明任何匹配的目标命名空间,android,xml,xamarin,visual-studio-2015,xsd,Android,Xml,Xamarin,Visual Studio 2015,Xsd,使用Visual Studio 2015-Xamarin Android 当我将鼠标悬停在某个axml文件的LinearLayout元素上时,会收到此警告 “将忽略schemas属性,因为您的文档没有 声明任何匹配的目标命名空间。“ 当我右键单击xml文件并选择properties时,它显示选择的两个模式 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation=
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">...
。。。
这两个模式是C:\Source\MobileApp\test\MyApp\obj\Debug\Schemas\21\android layout xml.xsd
C:\Source\MobileApp\test\MyApp\obj\Debug\Schemas\21\Schemas.android.com.apk.res.android.xsd
为了这篇文章,我在上面更改了我的应用程序名,但保留了其余的内容。
我不明白它的要求
我创建了一个新的应用程序,我没有得到那个错误。
我能看到的唯一区别是新应用程序引用文件夹\23\和\21。
我尝试删除21文件夹,并用我测试应用程序中的文件夹替换它,它只是重新创建了它
几乎感觉到Xamarin的智能感知从未被添加。
提前感谢您提供的所有帮助。请尝试更新所有Nuget软件包以获取解决方案并查看参考资料。包括版本在内的两种解决方案中的库是否相同?