gpt4 book ai didi

c# - 无法通过链接在 Release模式下构建我的项目

转载 作者:行者123 更新时间:2023-11-30 03:32:43 25 4
gpt4 key购买 nike

这是我尝试在 Release模式下运行时遇到的异常:

4>  C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1124,3): error MSB4018: The "BuildApk" task failed unexpectedly. 
4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1124,3): error MSB4018: System.ArgumentException: An item with the same key has already been added.
4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1124,3): error MSB4018: at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1124,3): error MSB4018: at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1124,3): error MSB4018: at Ionic.Zip.ZipFile._InternalAddEntry(ZipEntry ze)
4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1124,3): error MSB4018: at Ionic.Zip.ZipFile.AddFile(String fileName, String directoryPathInArchive)
4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1124,3): error MSB4018: at Xamarin.Android.Tasks.BuildApk.AddAssemblies(ZipFile apk)
4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1124,3): error MSB4018: at Xamarin.Android.Tasks.BuildApk.Execute()
4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1124,3): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1124,3): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()

有人对我如何解决这个问题有任何建议吗?

最佳答案

我用清洁项目解决了这个问题。右键单击项目名称 -> 清理。

关于c# - 无法通过链接在 Release模式下构建我的项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17168457/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com