EgorBo / EgorBo/Toasts.Forms.Plugin

ClassNotFoundException in Android project (Xamarin Forms)

Open
#151 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
275
Forks
81
PR merge metrics
No merged PRs in 30d

Description

I'm having issue with initializing Toasts plugin in Android's MainActivity.
Exception thrown on the _ToastNotification.Init(this);_ line, error description: _Java.Lang.ClassNotFoundException: Didn't find class "md52d189d64b7b0ac40b59b56928c06114b.NotificationReceiver"_
My code:
```
public class MainActivity : FormsAppCompatActivity
{
protected override void OnCreate(Bundle bundle)
{
.....
global::Xamarin.Forms.Forms.Init(this, bundle);
DependencyService.Register(); // Register your dependency
ToastNotification.Init(this);
LoadApplication(new App());
....
}
}
```

Can I get any help?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.