首页 > 解决方案 > 程序类型已经存在:android.support.v4.util.ArraySet$1

问题描述

在更改为使用 Android 10 的编译版本后,该项目运行良好。当我在该构建失败消息出现并停止构建后尝试构建项目时出现以下错误。

1>  Driver.Android -> E:\Projects\xamrine\Source\DriverAndroid\Driver\Driver\Driver.Android\bin\Debug\Driver.Android.dll
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1660,2): warning XA0122:
 Assembly 'Xamarin.Android.Support.Annotations' is using a deprecated attribute 
'[assembly: Java.Interop.DoNotPackageAttribute]'. Use a newer version of this NuGet package or notify the library author.
1>D8 : error : Program type already present: android.support.v4.util.ArraySet$1 \
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

你能告诉我我在做什么错误或者我该如何解决这个问题。

标签: c#xamarin.formsxamarin.android

解决方案


推荐阅读