在Xamarin Android中,“ VerifyTaskFailed”任务意外失败

时间:2019-08-27 05:37:36

标签: xamarin xamarin.android task nuget-package

更新nuget软件包后,Xamarin Android出现此错误。 可以解决这个问题。

  

/Users/hmspl/Documents/GitHub/xamarin/packages/Xamarin.Android.Support.Annotations.28.0.0.2/build/monoandroid90/Xamarin.Android.Support.Annotations.targets(9,9):   错误MSB4018:“ VerifyVersionsTask”任务意外失败。   System.TypeInitializationException:类型的初始值设定项   “ Xamarin.Android.Support.BuildTasks.NugetPackages”引发了异常。   ---> System.ArgumentException:已添加具有相同键的项。关键:28岁   System.Collections.Generic.Dictionary 2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x002b5] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/mono-x64/external/corefx/src/Common/src/CoreLib/System/Collections/Generic/Dictionary.cs:677 at System.Collections.Generic.Dictionary 2 [TKey,TValue] .Add(TKey键,   TValue值)[0x00000]在   / Users / builder / jenkins / workspace / build-package-osx-mono / 2019-02 / external / bockbuild / builds / mono-x64 / external / corefx / src / Common / src / CoreLib / System / Collections / Generic / Dictionary .cs:240   在Xamarin.Android.Support.BuildTasks.NugetPackages..cctor()   [0x0006b] in:0-内部结束   异常堆栈跟踪---   Xamarin.Android.Support.BuildTasks.VerifyVersionsTask.Execute()   [0x0009d]在:0处   Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute   ()[0x00023] in   /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs:573   在Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask   (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost,   Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext,   Microsoft.Build.BackEnd.TaskHost taskHost,   Microsoft.Build.BackEnd.ItemBucket存储桶,   Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask)[0x002a9]   在   /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs:810   在Xamarin.Android.Support.BuildTasks.VerifyVersionsTask.Execute()   [0x0009d]在:0处   Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute   ()[0x00023] in   /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs:573   在Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask   (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost,   Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext,   Microsoft.Build.BackEnd.TaskHost taskHost,   Microsoft.Build.BackEnd.ItemBucket存储桶,   Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask)[0x002a9]   在   /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs:810   在Xamarin.Android.Support.BuildTasks.VerifyVersionsTask.Execute()   [0x0009d]在:0处   Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute   ()[0x00023] in   /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs:573   在Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask   (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost,   Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext,   Microsoft.Build.BackEnd.TaskHost taskHost,   Microsoft.Build.BackEnd.ItemBucket存储桶,   Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask)[0x002a9]   在   /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs:810   在Xamarin.Android.Support.BuildTasks.VerifyVersionsTask.Execute()   [0x0009d]在:0处   Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute   ()[0x00023] in   /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs:573   在Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask   (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost,   Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext,   Microsoft.Build.BackEnd.TaskHost taskHost,   Microsoft.Build.BackEnd.ItemBucket存储桶,   Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask)[0x002a9]   在   /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs:810   在Xamarin.Android.Support.BuildTasks.VerifyVersionsTask.Execute()   [0x0009d]在:0处   Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute   ()[0x00023] in   /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs:573   在Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask   (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost,   Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext,   Microsoft.Build.BackEnd.TaskHost taskHost,   Microsoft.Build.BackEnd.ItemBucket存储桶,   Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask)[0x002a9]   在   /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs:810   在Xamarin.Android.Support.BuildTasks.VerifyVersionsTask.Execute()   [0x0009d]在:0处   Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute   ()[0x00023] in   /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs:573   在Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask   (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost,   Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext,   Microsoft.Build.BackEnd.TaskHost taskHost,   Microsoft.Build.BackEnd.ItemBucket存储桶,   Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask)[0x002a9]   在   /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs:810   在Xamarin.Android.Support.BuildTasks.VerifyVersionsTask.Execute()   [0x0009d]在:0处   Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute   ()[0x00023] in   /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs:573   在Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask   (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost,   Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext,   Microsoft.Build.BackEnd.TaskHost taskHost,   Microsoft.Build.BackEnd.ItemBucket存储桶,   Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask)[0x002a9]   在   /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs:810   在Xamarin.Android.Support.BuildTasks.VerifyVersionsTask.Execute()   [0x0009d]在:0处   Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute   ()[0x00023] in   /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs:573   在Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask   (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost,   Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext,   Microsoft.Build.BackEnd.TaskHost taskHost,   Microsoft.Build.BackEnd.ItemBucket存储桶,   Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask)[0x002a9]   在   /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs:810   在Xamarin.Android.Support.BuildTasks.VerifyVersionsTask.Execute()   [0x0009d]在:0处   Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute   ()[0x00023] in   /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs:573   在Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask   (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost,   Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext,   Microsoft.Build.BackEnd.TaskHost taskHost,   Microsoft.Build.BackEnd.ItemBucket存储桶,   Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask)[0x002a9]   在   /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs:810   (MSB4018)(MMHRC.Droid)

1 个答案:

答案 0 :(得分:8)

将软件包版本28.0.0.2降级为28.0.0.1,他们所做的更改正在破坏项目