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;

            base.OnCreate(bundle);

            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">
    <ContentPage.Content>
   <chart:SfChart x:Name="Chart">

    <chart:SfChart.PrimaryAxis>
  <chart:CategoryAxis LabelRotationAngle= "-45">
    <chart:CategoryAxis.Title>
      <chart:ChartAxisTitle Text="Meetup Date"/>
    </chart:CategoryAxis.Title>
  </chart:CategoryAxis>
</chart:SfChart.PrimaryAxis>

    <chart:SfChart.SecondaryAxis>
  <chart:NumericalAxis>
    <chart:NumericalAxis.Title>
      <chart:ChartAxisTitle Text="Count"/>
    </chart:NumericalAxis.Title>
  </chart:NumericalAxis>
</chart:SfChart.SecondaryAxis>
</chart:SfChart>
    </ContentPage.Content>
</ContentPage>

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.

Regards,
Yuvaraj 


Loader.
Up arrow icon