当我尝试在发布模式下构建我的应用时,我收到以下错误:
The "LinkAssemblies" task failed unexpectedly.
Xamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata item 'System.Xml.XmlDictionaryReader System.Runtime.Serialization.Json.JsonReaderWriterFactory::CreateJsonReader(System.IO.Stream,System.Xml.XmlDictionaryReaderQuotas)' (defined in 'SyncCacheControllerMD, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') from 'SyncCacheControllerMD, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' could not be resolved.
at Xamarin.Android.Diagnostic.Error(Int32 code, String message, Object[] args)
at Xamarin.Android.Tasks.LinkAssemblies.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() AcclaimAndroidApp
我尝试了以下内容:
毕竟这个我仍然无法找到解决方案。调试模式下的我的apk未安装在未启用开发人员的设备上。