I am building an android app in Visual Studio 2015
. It was working well. I am getting deployment error. When I am cleaning and rebuilding of the project is successful with no error. However when I try to run the app from Visual studio it tells me an deployment error occurred.
Error in Build Output:
No way to resolve 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". Choosing "System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
I have tried on real device too. It is showing deployment error on device and emulator as well..
Output:
Try something like this.
Manage NuGet Packages...
Consolidate
tab. This will set all your packages in same and right version.Note 1 : Not sure if there's something similar to this in Xamarin Studio.
When I got this error, I removed all my packages, navigate to the project folder delete packages. Started adding all the packages manually from the beginning.
This resolved the error for me for a while.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With