Hello I'm trying to run xamarin forms with Lottie for Xamarin and it's crashing. I have installed the Forms Package and the Droid Package and I get the following error:
Unhandled Exception:
Java.Lang.ClassNotFoundException: Didn't find class "md58995ca22a59cb7d445dac899fcf4189b.AnimationViewRenderer" on path: DexPathList[[zip file "/mnt/asec/com.GIC.AthkarApps-1/base.apk"],nativeLibraryDirectories=[/mnt/asec/com.GIC.AthkarApps-1/lib/arm, /vendor/lib, /system/lib]]
Also, I've added the following code to the MainActivity Class:
namespace EasyNETApp.Droid
{
[Activity(Label = "EasyNETApp", Icon = "@drawable/icon", Theme = "@style/MainTheme", 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);
Lottie.Forms.Droid.AnimationViewRenderer.Init();//Reference for Lottie
LoadApplication(new App());
}
}
}
And I have placed the .josn file as an asset: