【发布时间】:2017-10-27 11:30:07
【问题描述】:
我收到了另一个开发者的项目。我设置了我的机器。已配置具有所需组件的 VS-2017。
Android SDK-Manager 已安装相应版本。项目配置为使用Android 7.1 (Nougat) 编译。
开始构建我得到一个错误
1>ERROR : error APT0000: In <declare-styleable> AppBarLayout, unable to find attribute android:keyboardNavigationCluster
我不清楚是我需要设置此信息,还是需要此信息。
我收到了ERROR: In MenuView, unable to find attribute android:preserveIconSpacing 和Error:In SherlockSpinner, unable to find attribute android:popupPromptView。这两篇文章都没有帮助。
我重新检查了 SDK-Tools,我删除了文件夹 C:\Users\<user>\AppData\Local\Xamarin。
据我了解,消息中缺少一个需要设置的属性。
在一个项目文件Resource.designer.cs我找到了
public const int AppBarLayout_android_keyboardNavigationCluster = 2;
名称接缝完全匹配。
谁能解释一下这个错误?
有人可以解释我如何摆脱它以及将来如何解决类似的问题吗?
【问题讨论】:
-
我在帖子中已经提到了这一点。我没有看到任何适合我的解决方案。我应该尝试什么。 (即使我认为我检查了所有)...
-
你试过重启
Visual Studio吗?您使用的是什么版本的支持库? -
是的。当然,我尝试重新启动。已安装 Android 版本 25、26、27(以及更多版本)。
-
我的意思是您使用的是什么版本的支持库,您可能需要更新它。
-
我更新了 SDK-Manager 所需和提供的所有内容。
标签: c# android xamarin xamarin.android visual-studio-2017