-
Notifications
You must be signed in to change notification settings - Fork 142
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
MissingPluginException #3
Comments
Hi man, you are welcome. I'll take a guess here and say that you copied the files into your project directly without using the pubspec.yaml file. If you want to integrate this directly, you also have to add a few lines to the native code to register the plugin (this is something that Flutter does automatically when you include it in the pubspecs). For Android you have to add the following line in the MainActivity.java file (I usually do it above the GeneratedPluginRegistrant.registerWith(this); - line): For iOS you have to add the following line in the AppDelegate.m file: If you didn't copy the files directly, please let me know how you included this plugin into your pubspec.yaml file. |
Ahh thank you, I got it working! I was wondering if there was a better way to use this package, other than cloning it and having the code directly in my project. Thanks again. |
I installed this plugin via the yaml file and got the same error |
It seems that fully stopping the application and re-running it solves the problem, this is an important note, should be on the readme I think, it wont work if you only refresh the app after getting the package, you need to fully restart your app Edit: this is not a this plugin problem, while using android studio, i needed to do a fully restart to every new package I installed |
Yes, this is true. If you add plugins in Flutter you need to restart the whole application. Only then will the native code be executed Edit: this only applies if the Flutter plugin includes some native code, otherwise you don't need to restart |
Hi! I have same problem, but i use pubspec.yaml and it not work((( Then i added:
|
Completely re-starting app did not help: ════════ Exception caught by services library ══════════════════════════════════════════════════════ When the exception was thrown, this was the stack: |
For me stopping and starting the app worked |
|
I am also facing the same issue in my integration test |
@bradfrizzell Did you find a solution? |
@bradfrizzell this got me around the issue:
|
Hey man,
Thank you for making this package, I am really excited to use it.
Unfortunately, the package throws a MissingPluginException:
`The following MissingPluginException was thrown while activating platform stream on channel github.com/adee42/flutter_keyboard_visibility:
MissingPluginException(No implementation found for method listen on channel github.com/adee42/flutter_keyboard_visibility)`
I cloned your repo, added it to my project and updated my dependencies. Any idea on why this is happening?
The text was updated successfully, but these errors were encountered: