gpt4 book ai didi

xamarin.android - 来自 MvxBindingAttributes 的属性不与 MvvmCross 一起添加

转载 作者:行者123 更新时间:2023-12-04 04:43:32 24 4
gpt4 key购买 nike

我的 UI.Droid/Resources/Values 中有 MvxBindingAttributes.xml 但每次我尝试在布局中使用绑定(bind)时都会得到

Warning attribute is not declared.

No resource identifier found for attribute 'MvxBind' in package 'DroidUI'



所以由于某种原因它找不到这些属性。我试图关闭/重新打开/清理/重建但没有运气,尝试删除布局然后构建(希望它会在构建时添加它们)然后尝试再次添加它们,但似乎没有任何效果

最佳答案

您是否检查过 MvxBindingAttributes.xml文件在属性中标记为 AndroidResource?

VisualStudio 喜欢将 xml 文件标记为内容或无 - 特别是如果您添加了 MvxBindingAttributes.xml文件作为链接。

作为 更新 为此,您现在还可以使用特殊的“自动”xml 方案:

     xmlns:local="http://schemas.android.com/apk/res-auto"

关于xamarin.android - 来自 MvxBindingAttributes 的属性不与 MvvmCross 一起添加,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12596553/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com