Under review

OxyPlot.XamarinFormsAndroid error LinkAssemblies

Fernando García 6 years ago in Bugs updated 6 years ago 2

I just installed the OxyPlot NuGet packages in my project (a XamarinForms PCL) and I get this error when I try to compile:

Error inesperado en la tarea "LinkAssemblies".
Xamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata item 'Xamarin.Forms.Platform.Android.ViewRenderer`2' (defined in 'OxyPlot.XamarinFormsAndroid, Version=2014.1.517.0, Culture=neutral, PublicKeyToken=null') from 'OxyPlot.XamarinFormsAndroid, Version=2014.1.517.0, Culture=neutral, PublicKeyToken=null' could not be resolved.
en Xamarin.Android.Diagnostic.Error(Int32 code, String message, Object[] args)
en Xamarin.Android.Tasks.LinkAssemblies.Execute()
en Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
en Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()

If I remove OxyPlot.XamarinFormsAndroid from the references of the Android project it compiles fine, but then I can't use OxyPlot (I can't make the call to OxyPlot.XamarinFormsAndroid.Forms.Init(); )

Under review
Try to update the Xamarin.Forms component, the reference in the template seems to be not up to date. I just updated the documentation page about this.
That solved the problem, thanks!!