简体   繁体   English

Xamarin.Droid:Resource.Designer.cs在更新后损坏

[英]Xamarin.Droid: Resource.Designer.cs broken after update

I'm using Xamarin for Android and I'm using the support libraries. 我正在使用Xamarin for Android,而我正在使用支持库。 The project work fine, but after updating the support repositories from 23.1.1.1 to 23.3.0 , the Resource.Designer.cs is broken. 该项目工作正常,但在将支持存储库从23.1.1.1更新到23.3.0Resource.Designer.cs被破坏。

Note: I did delete the file, I did a complete rebuild with manually deleting the obj and bin folders and I made shure all of my Android packages are up to date (Android SDK Manager). 注意:我确实删除了文件,我通过手动删除objbin文件夹进行了完整的重建,我确保所有Android软件包都是最新的(Android SDK Manager)。

The errors are all part of the public static void UpdateIdValues() function all basically all look like this: 这些错误都是public static void UpdateIdValues()函数的一部分,所有这些基本上都是这样的:

'Resource.Color' does not contain a definition for 'design_textinput_error_color'

With the code: 随着代码:

global::Acr.UserDialogs.Resource.Color.design_textinput_error_color = global::EVM.Droid.Resource.Color.design_textinput_error_color;

Any Idea, where this error is coming from and how to fix it? 任何想法,这个错误来自哪里以及如何解决它? Thanks for your help. 谢谢你的帮助。

Same issue, with visual studio comunity 2015, it seems to be a version problem, this was an old resorce definition, that now has been substituted with _dark and _light. 同样的问题,视觉工作室社区2015,它似乎是一个版本问题,这是一个旧的resorce定义,现在已被_dark和_light取代。 At the moment to solve I've added the missed values copying them from the dark version. 目前要解决我添加了从黑暗版本复制它们的遗漏值。 Seems that Xamarin includes some old version (eg API 22) instead of the latest one (API 23) Flavio 似乎Xamarin包含一些旧版本(例如API 22)而不是最新版本(API 23)Flavio

[EDIT] Find another quick solution, from nuGet package manager of the .droid project remove ALL the installed packages, then add the latest available release of xamarin related (I've user power shell adding them one by one in order of dependency from the nuget page of xamarin https://www.nuget.org/packages/Xamarin.Forms/ ) Build all...and this does the trick! [编辑]找到另一个快速解决方案,从.droid项目的nuGet包管理器中删除所有已安装的软件包,然后添加最新的xamarin相关版本(我的用户电源shell依次从依赖关系顺序添加它们) xamarin的nuget页面https://www.nuget.org/packages/Xamarin.Forms/ )构建所有......这就是诀窍!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM