Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Exception: MissingPluginException(No implementation found for method read on ...flutter_secure_storage #82

Open
rlfolden opened this issue Apr 30, 2021 · 3 comments

Comments

@rlfolden
Copy link

rlfolden commented Apr 30, 2021

I built your example targeting macos and get the following errors:

[ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: MissingPluginException(No implementation found for method read on channel plugins.it_nomads.com/flutter_secure_storage)
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:7)

#1 FlutterSecureStorage.read (package:flutter_secure_storage/flutter_secure_storage.dart:45:26)

#2 SecureStorage.read (package:oauth2_client/src/secure_storage.dart:12:12)

#3 TokenStorage.getToken (package:oauth2_client/src/token_storage.dart:20:36)

#4 OAuth2Helper.getTokenFromStorage (package:oauth2_client/oauth2_helper.dart:105:12)

#5 OAuth2Helper.getToken (package:oauth2_client/oauth2_helper.dart:80:19)

#6 _MyHomePageState.authorize (package:oauth2_client_test/main.dart:93:23)

I built Android Studio ver 4.1.2, Flutter 2.0.5, Dart 2.2.3 and MacOS ver 11.2.3
I selected using Googleauth client

@okrad
Copy link
Collaborator

okrad commented May 5, 2021

Hi @rlfolden, it seems to be a known issue that sometimes happens with flutter plugins.
I never experienced it myself, but maybe you can find some (hopefully) useful information here...

@oceanebelle
Copy link

Encountered this error today and mine was resolved by adding additional dependencies in pubspec.yaml
e.g.
dependencies: oauth2_client: 2.2.0 flutter_secure_storage: 4.2.0 flutter_web_auth: 0.3.0

@okrad
Copy link
Collaborator

okrad commented Jul 7, 2021

Thank you @oceanebelle for the suggestion!
@rlfolden, did you managed to solve your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants