3
votes

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.

4
What version of Xamarin Studio and Xamarin.Android are you using? You can try and disable the linking step in your android project as a workaround...der_michael

4 Answers

0
votes

First Update Xamarin Studio And Xamrin Anroid Latest version then Clean your solution and Fixed setting target to Android 4.4. and also set linking option None after done all of this step Rebuild your solution and run, it might be work definitely please try it.

0
votes

If you have used Xamarin.Android.Support.v7.AppCompat than first of you have to get latest version of xamarin studio and also android sdk then you will build successfully please try it.

0
votes

May you don't have the package for AppCompat. Download latest Xamarin.Android.Support.v7.AppCompat libraries from NuGet and rebuild the project.

0
votes

I think that you are trying to add AppCompat library to your app.

Be sure that you download the SDK like that. When you download these packages don't choose the last stable version. Instead choose any older version like that.