ClassNotFoundException in Android project (Xamarin Forms)
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<ToastNotification>(); // Register your dependency
ToastNotification.Init(this);
LoadApplication(new App());
....
}
}
Can I get any help?
Have the exact same problem. @tabula-rasa Have you found a solution to this one ?
Nope :)
Unfortunately I have to report the exact same issue. Reverting to V3.0.0 doesn't help (gives the same error) and 2.x is significantly different so I haven't tried using it.
I recently have very little time to work on this project. If you want to debug the issue, fix it and submit a PR, will gladly accept.
No worries, will see what I can do - it's on work time after all!
8-)
--
Proudly FaecesBook free since 2004. In our house we eat apples and look through windows, for anything important with computers we use Android and Linux. I support the BDS Movement https://bdsmovement.net/.
GNU Terry Pratchett http://www.gnuterrypratchett.com/
On 21 February 2018 at 12:33, Adam [email protected] wrote:
I recently have very little time to work on this project. If you want to debug the issue, fix it and submit a PR, will gladly accept.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/EgorBo/Toasts.Forms.Plugin/issues/151#issuecomment-367210668, or mute the thread https://github.com/notifications/unsubscribe-auth/AGcqp2-5h1WFII9OajKqA7GAKgmNZwiTks5tW5ybgaJpZM4Rz9nT .
this looks like linker or proguard issue