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>