Xamarin 构建错误:错误 APT0000:在 <declare-styleable>...,找不到属性 [英] Xamarin build ERROR : error APT0000: In <declare-styleable> ..., unable to find attribute
问题描述
我收到了另一个开发者的项目.我设置了我的机器.具有所需组件的 VS-2017 已配置.
I received a project from another developer. I setup my machine. VS-2017 with the required components was already configured.
Android SDK-Manager 已经安装了相应的版本.项目配置为使用 Android 7.1 (Nougat)
编译.
Android SDK-Manager has the corresponding version installed. Project is configured to compile with Android 7.1 (Nougat)
.
开始构建时出现一个错误
Starting the build I get one error
1>ERROR : error APT0000: In <declare-styleable> AppBarLayout, unable to find attribute android:keyboardNavigationCluster
我不清楚,是我需要设置这些信息,还是需要这些信息.
It is unclear to me, were I need to set this information, or were this information is needed.
我收到了 错误:在 MenuView 中,无法找到属性 android:preserveIconSpacing和 错误:在 SherlockSpinner 中,无法找到属性 android:popupPromptView.这两篇文章都没有帮助.
I rececked ERROR: In MenuView, unable to find attribute android:preserveIconSpacing and Error:In SherlockSpinner, unable to find attribute android:popupPromptView. Both articles don't help.
我重新检查了 SDK 工具,删除了文件夹 C:\Users\
.
I rechecked the SDK-Tools, I deleted the folder C:\Users\<user>\AppData\Local\Xamarin
.
据我所知,该消息缺少一个需要设置的属性.
As far as I understand the message there is an attribute missing, that needs to be set.
在项目文件 Resource.designer.cs
中我找到了
In a project file Resource.designer.cs
I found
public const int AppBarLayout_android_keyboardNavigationCluster = 2;
名称接缝完全匹配.
有人能解释一下这个错误吗?
Can someone explain me this error?
谁能解释一下我是如何摆脱它的,以及将来如何解决类似的问题?
Can someone explain how I get rid of it and how to fix similar problems in future?
推荐答案
我遇到了这个错误,经过一番研究,我刚刚在Android SDK Manager 然后我选择 Android 项目 > 属性 > 应用程序 > 使用最新平台(Android 8.0 (Oreo)).它对我有用.
I had this error and after some research I just installed the Android OREO 8.0 SDK in the Android SDK Manager and than I select Android Project > Properties > Application > Use latest Platform (Android 8.0 (Oreo)). And it worked for me.
这篇关于Xamarin 构建错误:错误 APT0000:在 <declare-styleable>...,找不到属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!