Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
721 views
in Technique[技术] by (71.8m points)

android - MissingPluginException(No implementation found for method init on channel plugins.flutter.io/google_sign_in)

Using Flutter's google sign_in

But seeing the following message when I use this statement to sign in a user

_googleSignIn.signIn();

E/flutter ( 6491): MissingPluginException(No implementation found for method init on channel plugins.flutter.io/google_sign_in)

I verified the following steps:

GoogleSignInPlugin.registerWith(registry.registrarFor("io.flutter.plugins.googlesignin.GoogleSignInPlugin")); // is present

GeneratedPluginRegistrant.registerWith(this); // in MainActivity.Java

Is this error frequently reported by users. Not sure how to proceed. I am doing what most of the docs say and yet it doesn't work.

Other weird behavior I see is, first time I run flutter run it gets stuck on await googleSignIn.SignIn().

Only after I do a hot reload (by typing "r"), I see the above error message of :

E/flutter (12326): MissingPluginException(No implementation found for method init on channel plugins.flutter.io/google_sign_in)

Question: Are there any alternatives to do basic auth on Flutter applications. I just need some kind of basic auth so that my server can know which user it is serving data to.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Run flutter clean and restart IDE as well as re-buid app completely . This will fix it.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...