Google Sign In and Facebook Sign In plugins throw MissingPluginException

When i try to perform whichever method of Google or Facebook Auth instance i se this:

[ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: MissingPluginException(No implementation found for method init on channel plugins.flutter.io/google_sign_in)

  1. I have upgraded to 2.12.0 version – previously it was fine
  2. I have followed everything from here – https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects
  3. I have problem only on Android – on iOS it works fine
  4. Of course i have tried flutter clean and re-run the app on cold re-run NUMEROUS times
  5. I tried to switch between all the channels – stable, master, dev – no luck
  6. I tried to run – flutter create . and re-run – no luck

It really seems that there is something wrong when making connection to corresponding MethodChannel implementation over binaryMessenger

The stacktrace i get is the following:

E/flutter (11853): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: MissingPluginException(No implementation found for method getAccessToken on channel app.meedu/flutter_facebook_auth)
E/flutter (11853): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:7)
E/flutter (11853): <asynchronous suspension>
E/flutter (11853): #1      FacebookAuth.accessToken (package:flutter_facebook_auth_platform_interface/src/method_channel_facebook_auth.dart:90:20)
E/flutter (11853): <asynchronous suspension>
E/flutter (11853): #2      LoginPage._signInWithFacebook.<anonymous closure> (package:eatandparty/view/page/login_page.dart:55:42)
E/flutter (11853): <asynchronous suspension>
E/flutter (11853): 

This is flutter doctor -v output:

[✓] Flutter (Channel stable, 2.0.1, on Mac OS X 10.15.7 19H15 darwin-x64, locale en-ES)
    • Flutter version 2.0.1 at /Users/mikhailbarsukou/work/apps/flutter
    • Framework revision c5a4b4029c (8 days ago), 2021-03-04 09:47:48 -0800
    • Engine revision 40441def69
    • Dart version 2.12.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/mikhailbarsukou/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Ultimate Edition (version 2020.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 53.1.5
    • Dart plugin version 203.6912

[✓] VS Code (version 1.41.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • macOS (desktop)             • macos         • darwin-x64     • Mac OS X 10.15.7 19H15 darwin-x64
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 89.0.4389.82

• No issues found!

Please, help me here because i’m totally stuck…

1 possible answer(s) on “Google Sign In and Facebook Sign In plugins throw MissingPluginException

  1. I finally figured out what was wrong – flutter_facebook_auth was misconfigured for Android.

    Here guys explicitly specified it.
    It means that – if one plugin is not configured correctly it crushes operation of all the other plugins!

    Guys, can you, please, do something to make it more explicit…? To add some logging or something – because it is SUPER inobvious what to do next with it 🙂