简体   繁体   English

热门在编译Xamarin.Forms项目时修复'VerifyVersionsTask'错误

[英]Hot to fix 'VerifyVersionsTask' error at compile Xamarin.Forms project

After creating a project from scratch using Xamarin.Form and after updating all the libraries (nuget packages) When compiling gives the following error: 使用Xamarin.Form从头开始创建项目并更新所有库(nuget包)后,编译时出现以下错误:

Unexpected task error "VerifyVersionsTask"
  1. Create new blank Xamarin project 创建新的空白Xamarin项目
  2. Update to the latest nuget packages (all them) 更新到最新的nuget包(所有包)
  3. Try to build the project but it failes with the following error: 尝试构建项目,但失败并显示以下错误:

Error The “VerifyVersionsTask” task failed unexpectedly.” “System.TypeInitializationException: The type initializer for 'Xamarin.Android.Support.BuildTasks.NugetPackages' threw an exception. 错误“ VerifyVersionsTask”任务意外失败。”“ System.TypeInitializationException:“ Xamarin.Android.Support.BuildTasks.NugetPackages”的类型初始值设定项引发了异常。 —> System.ArgumentException: An item with the same key has already been added. —> System.ArgumentException:已添加具有相同键的项。

Build should run without error. 生成应该运行没有错误。

Please see this tweet 请参阅此推文

Sorry folks we have delisted 28.0.0.2 for the time being. 抱歉,我们暂时将28.0.0.2从清单中删除。 Please revert back to 28.0.0.1 until we can resolve and release an update 请恢复为28.0.0.1,直到我们解决并发布更新

You probably installed the Xamarin.Android.Support.* libraries with version 28.0.0.2 which is flawed and retracted. 您可能安装了版本为28.0.0.2的Xamarin.Android.Support。*库,该库存在缺陷并已收回。 Revert to 28.0.0.1 for now. 现在恢复到28.0.0.1。

Also see the related issue on GitHub for this error message and the progress. 另请参阅GitHub上的相关问题以获取此错误消息和进度。

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

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