We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Getting a error for SfCharts

Getting this error on main activity page... System.TypeLoadException: Could not load type Syncfusion.RangeNavigator.XForms.Droid.RangeNavigatorEventDependencyService while decoding custom attribute: (null)

just trying to implement a sfchart, haven't even gotten past the getting started and already getting an error.

here is my main activity code 

using System;

using Android.App;
using Android.Content;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Syncfusion.SfChart.XForms.Droid;

namespace Drip.Droid
    [Activity(Label = "Drip.Droid", Icon = "@drawable/icon", Theme = "@style/MyTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
    public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
        protected override void OnCreate(Bundle bundle)
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource = Resource.Layout.Toolbar;


            global::Xamarin.Forms.Forms.Init(this, bundle);
            new SfChartRenderer();

            LoadApplication(new App());

And here is my xaml code

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="Drip.MyPage" xmlns:chart="clr-namespace:Syncfusion.SfChart.XForms;assembly=Syncfusion.SfChart.XForms">
   <chart:SfChart x:Name="Chart">

  <chart:CategoryAxis LabelRotationAngle= "-45">
      <chart:ChartAxisTitle Text="Meetup Date"/>

      <chart:ChartAxisTitle Text="Count"/>

1 Reply

YP Yuvaraj Palanisamy Syncfusion Team October 3, 2017 03:46 AM UTC

Hi Carlo chan,

Thanks for contacting Syncfusion support.

We were unable to reproduce the reported issue at our end. Please Clean and Rebuild your application or update the sample to reproduce the issue which will be helpful for providing the better solution on this.


Live Chat Icon For mobile
Up arrow icon