
0
En revisión
OxyPlot.XamarinFormsAndroid error LinkAssemblies
Hi,
I just installed the OxyPlot NuGet packages in my project (a XamarinForms PCL) and I get this error when I try to compile:
Error
1
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()
Chupeta.Android
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(); )
Thanks.
I just installed the OxyPlot NuGet packages in my project (a XamarinForms PCL) and I get this error when I try to compile:
Error
1
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()
Chupeta.Android
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(); )
Thanks.

+1
En revisión
Oystein Bjorke hace 10 años
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.

0
Fernando García hace 10 años
That solved the problem, thanks!!
Servicio de atención al cliente por UserEcho