question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Xamarin.Android build task fails

See original GitHub issue

I’ve added the Xamarin.Android build task to my VSO Build, using the Hosted build agent. When VSO runs the task, it fails with the error message:

2015-08-20T16:39:01.2412835Z      1>CSC : error CS1703: Multiple assemblies with equivalent identity have been imported: 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll' and 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll'. Remove one of the duplicate references. [C:\a\a815ee8d\phoneword\PhonewordAndroid\PhonewordAndroid.csproj]

I don’t have this problem when I build my Xamarin.Android project locally via Visual Studio 2015 or using the command line.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:51 (24 by maintainers)

github_iconTop GitHub Comments

3reactions
msimecekcommented, Nov 24, 2016

Same issue here… Changing to 6 solved it, but that’s definitely not optimal.

2reactions
InquisitorJaxcommented, Nov 3, 2016

I can confirm - build is green if compile target is Android 6. Would prefer not to have to change that just to get my CI to work though 😐

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android build error – The LinkAssemblies task failed ...
You may see an error message The "LinkAssemblies" task failed unexpectedly when building a Xamarin.Android project that uses Forms.
Read more >
Xamarin Android build failing - Visual Studio Feedback
I am using the Xamarin Android build task, my build fails on Task : Xamarin.Android (Build Xamarin Android Project). It fails on the...
Read more >
Xamarin The "ManifestMerger" task failed unexpectedly
After installing Visual Studio 2022, I created a new Xamarin project targeting Android only but failed to build with the following error.
Read more >
Xamarin/Android fails to compile in VS 2019
I am using Visual Studio 2019 and Xamarin Forms v4.8. The app builds and runs fine with pendo library on iOS. However, when...
Read more >
Setup Azure Pipeline for Xamarin Forms App - dotnetco.de
[/Users/runner/work/1/s/MyApp.Android/MyApp.Android.csproj]: Yes, My Xamarin.iOS task has message from Android! Next to it, there are also error ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found