Xamarin.Android.Common.targets warnings

I get about 60 warnings when building my app.  The warnings are all similar to this:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Warning: Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Com.Syncfusion.Rangenavigator.GridLinesRenderer, Syncfusion.SfChart.Android, Version=16.1451.0.37, Culture=neutral, PublicKeyToken=null'; Second Type: 'Com.Syncfusion.Rangenavigator.GridLinesRenderer, Syncfusion.SfChart.XForms.Android, Version=16.1451.0.37, Culture=neutral, PublicKeyToken=null'. (CSOSA_Client.Droid)

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Warning: References to the type 'Com.Syncfusion.Rangenavigator.GridLinesRenderer' will refer to 'Com.Syncfusion.Rangenavigator.GridLinesRenderer, Syncfusion.SfChart.Android, Version=16.1451.0.37, Culture=neutral, PublicKeyToken=null'. (CSOSA_Client.Droid)

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Warning: Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Com.Syncfusion.Rangenavigator.LabelsRenderer, Syncfusion.SfChart.Android, Version=16.1451.0.37, Culture=neutral, PublicKeyToken=null'; Second Type: 'Com.Syncfusion.Rangenavigator.LabelsRenderer, Syncfusion.SfChart.XForms.Android, Version=16.1451.0.37, Culture=neutral, PublicKeyToken=null'. (CSOSA_Client.Droid)

This is repeated many times for various types.

The warnings seem to be complaining about conflicts between different versions, but the referenced versions are the same.

How do I solve this?

1 Reply

DV Divya Venkatesan Syncfusion Team June 14, 2018 11:46 AM UTC

Hi Robert, 
 
Thanks for using Syncfusion products. 
 
We suspect that you are adding Syncfusion.Xamarin.SfChart.Android nuget in Android project. We would like to let you know that it is not required to add Syncfusion.Xamarin.SfChart.Android and Syncfusion.Xamarin.SfChart.IOS nuget packages in Android and iOS projects respectively. It is only for Xamarin.Android and Xamarin.iOS projects.  Please add Syncfusion.Xamarin.SfChart alone in all the Xamarin.Forms projects. i.e PCL or NetStandard, Android, iOS and UWP. Please refer the following user guide to know more about the dependencies for Xamarin.Forms platform. 
  
 
Regards, 
Divya Venkatesan 
 


Loader.
Up arrow icon