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

Unsupported operation. Method not found. The exception thrown was: MissingPluginException #641

Closed
wellbranding opened this issue Mar 9, 2021 · 3 comments
Labels
new issue An issue that hasn't yet been seen from the maintainer

Comments

@wellbranding
Copy link

Just added a plugin to android and immediately got an internal error:

MethodChannelFilePicker] Unsupported operation. Method not found. The exception thrown was: MissingPluginException(No implementation found for method any on channel miguelruivo.flutter.plugins.filepicker)
E/flutter ( 6524): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: MissingPluginException(No implementation found for method any on channel miguelruivo.flutter.plugins.filepicker)
E/flutter ( 6524): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:7)
E/flutter ( 6524):
E/flutter ( 6524): #1 MethodChannel.invokeListMethod (package:flutter/src/services/platform_channel.dart:344:35)
E/flutter ( 6524):
E/flutter ( 6524): #2 FilePickerIO._getPath (package:file_picker/src/file_picker_io.dart:88:33)
E/flutter ( 6524):
E/flutter ( 6524): #3 _SubmissionWidgetState.pickFiles (package:ess_front/music/ContractCreationPage.dart:24:31)
E/flutter ( 6524):

I initially used grade 4.1.2, ten switched to recommended 4.0.1, and wrapped properties to 6.1.1, but the issue exists.

@wellbranding wellbranding added the new issue An issue that hasn't yet been seen from the maintainer label Mar 9, 2021
@miguelpruivo
Copy link
Owner

Hi, I’m sorry you’re experiencing this, but it’s likely related with your project dependencies.

Try cleaning, checking the wiki’s troubleshooting or looking for similar issues here in the repo (which are reported sometimes and ending up fixed by the reporters themselves).

I’m sorry for any inconvenience.

@TomasJohansson
Copy link

MissingPluginException(No implementation found for method any on channel miguelruivo.flutter.plugins.filepicker)

One situation when the above exception occurs for Android is when you have overridden the method MainActivity.configureFlutterEngine without invoking super.configureFlutterEngine

This might happen if you are using a PlatformView and have followed the documentation at https://github.com/flutter/flutter/wiki/Hybrid-Composition which currently does not invoke super.configureFlutterEngine
unlike the documentation at https://docs.flutter.dev/platform-integration/android/platform-views?tab=android-platform-views-kotlin-tab which does invoke super.configureFlutterEngine

@jonnyjohnson1
Copy link

@TomasJohansson What about in swift? I have built some method channels and my thoughts were somehow that my use of them had overridden the method channel the file picker was working from. Is that true, and where could that be corrected in the swift code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new issue An issue that hasn't yet been seen from the maintainer
Projects
None yet
Development

No branches or pull requests

4 participants