EgorBo / Toasts.Forms.Plugin

A plugin for Xamarin and Windows - it unites Crouton (Android), TWMessageBarManager (iOS) and my toast notificator for WP8.
MIT License
278 stars 84 forks source link

ClassNotFoundException in Android project (Xamarin Forms) #151

Open tabula-rasa opened 6 years ago

tabula-rasa commented 6 years ago

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?

maggima commented 6 years ago

Have the exact same problem. @tabula-rasa Have you found a solution to this one ?

tabula-rasa commented 6 years ago

Nope :)

mtbgithub commented 6 years ago

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.

adamped commented 6 years ago

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.

mtbgithub commented 6 years ago

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 notifications@github.com 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 .

EmilAlipiev commented 6 years ago

this looks like linker or proguard issue