C# 程序类型已存在:android.support.v4.util.ArraySet$1

C# 程序类型已存在:android.support.v4.util.ArraySet$1,c#,xamarin.forms,xamarin.android,C#,Xamarin.forms,Xamarin.android,该项目在改用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\Commu

该项目在改用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 ==========

你能告诉我我犯了什么错误,或者我该如何解决这个问题吗。

Hi,来自错误日志
Xamarin.Android.Support.Annotations
,Android 10不支持。在更新nuget包之前,你不能在Andriod10中使用它。我也有同样的问题。至少在我的例子中,代码中没有引用Xamarin.Android.Support.Annotations。可能是在我的一个nuget.Hi中引用的,来自错误日志
Xamarin.Android.Support.Annotations
在Android 10中不受支持。在更新nuget包之前,你不能在Andriod10中使用它。我也有同样的问题。至少在我的例子中,代码中没有引用Xamarin.Android.Support.Annotations。也许它在我的一本书中被引用过。