Toasts.Forms.Plugin icon indicating copy to clipboard operation
Toasts.Forms.Plugin copied to clipboard

ClassNotFoundException in Android project (Xamarin Forms)

Open tabula-rasa opened this issue 7 years ago • 6 comments

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?

tabula-rasa avatar Jan 31 '18 13:01 tabula-rasa

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

maggima avatar Feb 20 '18 15:02 maggima

Nope :)

tabula-rasa avatar Feb 20 '18 16:02 tabula-rasa

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.

mtbgithub avatar Feb 21 '18 04:02 mtbgithub

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.

adamped avatar Feb 21 '18 04:02 adamped

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 .

mtbgithub avatar Feb 21 '18 06:02 mtbgithub

this looks like linker or proguard issue

EmilAlipiev avatar Jul 16 '18 00:07 EmilAlipiev