Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin android build issue

getting below error on my xamarin Android application. Please help me to resolve this issue.

C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(5,5): Error MSB4018: The "LinkAssemblies" task failed unexpectedly. Xamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata item 'Android.Support.V4.App.NotificationCompat/BuilderExtender' (defined in 'Xamarin.Android.Support.v7.AppCompat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') from 'Xamarin.Android.Support.v7.AppCompat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' could not be resolved.

like image 568
Vikash Anand Avatar asked Jul 07 '26 13:07

Vikash Anand


1 Answers

First, update Xamarin Studio and Xamarin Android to latest version. Then, clean your solution and set target to Android 4.4. Set also the linking option to None.

After all these steps, rebuild your solution and run, it should work. Please try it.

like image 177
Vimal Kotadia Avatar answered Jul 10 '26 01:07

Vimal Kotadia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!