Xamarin.Android build task fails
See original GitHub issueI’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:
- Created 8 years ago
- Comments:51 (24 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same issue here… Changing to 6 solved it, but that’s definitely not optimal.
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 😐