更新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:已经添加了具有相同键的项。关键字:System.Collections.Generic.Dictionary上的28
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]。在/ Users / builder / jenkins / workspace / build-package-osx-mono / 2019-02 / external / bockbuild / builds / mono-x64 /中添加(TKey键,TValue值)[0x00000]外部/corefx/src/Common/src/CoreLib/System/Collections/Generic/Dictionary.cs:240 at Xamarin.Android.Support.BuildTasks.NugetPackages..cctor()在[0x0006b]中-内部结束异常堆栈跟踪---在Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()在0的Xamarin.Android.Support.BuildTasks.VerifyVersionsTask.Execute()在[0x0009d]在[0x00023] /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。 Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()在0中的VerifyVersionsTask.Execute()[0x0009d] [0x00023]在/ Users / builder / jenkins / workspace / build-package-osx-中在Microsoft.Build.BackEnd.TaskBuilder上的mono / 2019-02 / external / bockbuild / builds / msbuild-15 / src / Build / BackEnd / TaskExecutionHost / TaskExecutionHost.cs:573。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()在Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()中在0的[0x0009d]在[/ users / builder / jenkins /工作区/构建包osx-mono / 2019-02 / external / bockbuild / builds / msbuild-15 / src / Build / BackEnd / TaskExecutionHost / TaskExecutionHost。cs:573 at 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桶,/ Users / builder / jenkins / workspace / build-package-osx-mono / 2019-02 / external / bockbuild / builds / msbuild-15 / src / Build /中的Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask)[0x002a9] Backend / Components / RequestBuilder / TaskBuilder.cs:Xamarin.Android.Support.BuildTasks.VerifyVersionsTask.Execute()在0处位于Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost。在/Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs中执行()[0x00023]:在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存储桶, / Users / builder / jenkins / workspace / build-package-osx-mono / 2019-02 / external / bockbuild / builds / msbuild-15 / src / Build / Backend /中的Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask)[0x002a9]组件/RequestBuilder/TaskBuilder.cs:810(位于Xamarin.Android.Support.BuildTasks.VerifyVersionsTask.Execute()[0x0009d],位于Microsoft.Build.BackEnd::0)。/ Users / builder / jenkins / workspace / build-package-osx-mono / 2019-02 / external / bockbuild / builds / msbuild-15 / src /中的TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()[0x00023] 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 ,/ Users / builder / jenkins / workspace / build-package-osx-mono / 2019-02 / external / bockbuild / builds /中的Microsoft.Build.BackEnd.ItemBucket存储区,Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask)[0x002a9]在Xamarin.Android.Support.BuildTasks.VerifyVersionsTask上的msbuild-15 / src / Build / BackEnd / Components / RequestBuilder / TaskBuilder.cs:810。在/ Users / builder / jenkins / workspace / build-package-osx-mono /中的Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()在:0中执行()[0x0009d] 2019年2月/外部/bockbuild/builds/msbuild-15/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs:573在Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost,Microsoft.Build / Users / builder / jenkins / workspace / build-中的.BackEnd.Logging.TaskLoggingContext taskLoggingContext,Microsoft.Build.BackEnd.TaskHost taskHost,Microsoft.Build.BackEnd.ItemBucket存储桶,Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask)[0x002a9]软件包osx-mono / 2019-02 / external / bockbuild / builds / msbuild-15 / src / Build / BackEnd / Components / RequestBuilder / TaskBuilder.cs:Xamarin.Android.Support.BuildTasks.VerifyVersionsTask.Execute()中的810在Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()在:0中的/ Users / builder /中的[0x00023] 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。/ Users / builder / jenkins / workspace / build-package-osx-mono / 2019-02 / external / bockbuild / builds / msbuild-15 / src / Build / BackEnd / Components / RequestBuilder / TaskBuilder中的TaskExecutionMode howToExecuteTask)[0x002a9]。 cs:810在Xamarin.Android.Support.BuildTasks.VerifyVersionsTask.Execute()在Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()在:0的[0x0009d]在/ Users /中在Microsoft.Build.BackEnd.TaskBuilder上的builder / jenkins / workspace / build-package-osx-mono / 2019-02 / external / bockbuild / builds / msbuild-15 / src / Build / BackEnd / TaskExecutionHost / TaskExecutionHost.cs:573。 ExecuteInstantiatedTask(Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost,Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext,Microsoft.Build.BackEnd.TaskHost taskHost,Microsoft.Build。/ Users / builder / jenkins / workspace / build-package-osx-mono / 2019-02 / external / bockbuild / builds / msbuild-15 / src中的BackEnd.ItemBucket存储桶,Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask)[0x002a9] /Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs:810(位于Xamarin.Android.Support.BuildTasks.VerifyVersionsTask.Execute()[0x0009d],位于Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost的:0中)在/Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs中执行()[0x00023] Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask上的:573(Microsoft.Build.BackEnd.ITaskExecutionHost taskTaskExecutionHost,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 /外部/bockbuild/builds/msbuild-15/src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs:810(MSB4018)(MMHRC.Droid)
logeshpalani.. 8
将软件包版本28.0.0.2降级到28.0.0.1,他们所做的更改正在破坏项目
将软件包版本28.0.0.2降级到28.0.0.1,他们所做的更改正在破坏项目