How to fix "There is no way to resolve the conflict between" System.Xml "in xamarin android?

I am creating an Android application in Visual Studio 2015 . He worked well. I get a deployment error. When I clean and restore the project successfully, without errors. However, when I try to run the application from Visual studio, it tells me that a deployment error has occurred.

Error building output:

Cannot resolve the conflict between "System.Xml, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089" and "System.Xml, Version = 2.0.5.0, Culture = neutral, PublicKeyToken = 7cec85d7bea7798e". The choice of "System.Xml, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089" is arbitrary.

I also tried on a real device. It also shows a deployment error on the device and emulator.

Output: Output window

+5
source share
1 answer

Try something like this.

  • open the project in Visual Studio.
  • Right-click on your solution and select Manage NuGet Packages...
  • Select the Consolidate tab. This will install all your packages in the same and correct version.

Note 1: Not sure if something like this is in Xamarin Studio.


When I received this error, I uninstalled all my packages, go to the project folder delete folders. I started adding all packages manually from the very beginning.

This fixed the error for me for a while.

+1
source

All Articles