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

I/flutter (10973): [FilePicker] Unsupported operation. Method not found. The exception thrown was: MissingPluginException(No implementation found for method IMAGE on channel file_picker) #82

Closed
Loisgenesis opened this issue May 20, 2019 · 14 comments

Comments

@Loisgenesis
Copy link

I am using file_picker: ^1.3.4+1 , I have also pasted the example code and ran it but it keeps printing [FilePicker] Unsupported operation. Method not found. The exception thrown was: MissingPluginException(No implementation found for method ANY on channel file_picker)
My project name is different, pls assist thanks

@miguelpruivo
Copy link
Owner

miguelpruivo commented May 20, 2019

@Loisgenesis looks like a dup of #75. Just make sure you have your project name right within your pubspec.

Also, I suggest you to flutter clean your project and then flutter pub get and flutter run again.

Usually, that error happens when for some reason the package is not being included in the build.

@Loisgenesis
Copy link
Author

flutter clean made it work, thanks a lot

@jafar260698
Copy link

I am still getting this error Unsupported operation. Method not found. The exception thrown was: MissingPluginException(No implementation found for method any on channel miguelruivo.flutter.plugins.filepicker)
E/flutter (19823): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation found for method any on channel miguelruivo.flutter.plugins.filepicker)

@uzairleo
Copy link

am still getting this error Unsupported operation. Method not found.

@miguelpruivo
Copy link
Owner

Just for reference, looks related with #545.

@Shiva207892
Copy link

Unsupported operation. Method not found. The exception thrown was: MissingPluginException(No implementation found for method custom on channel miguelruivo.flutter.plugins.filepicker)

@janithcooray
Copy link

janithcooray commented Jun 13, 2021

Same Issue when running on linux-debug
Tried:
flutter clean
flutter pub get
and flutter run

i will try web and android to see if its just related to linux

Confirmed ! its working on web!

@Chiyembekezo
Copy link

flutter clean
flutter pub get
and flutter run
Confirmed ! its working on mobile

@miguelpruivo
Copy link
Owner

This kind of issues typically are related with local builds that for some reason aren’t embedding the packages in build. Should be easily resolved with the steps mentioned above.

@EmmanuelAmet
Copy link

After running flutter pub add file_picker and writing the code implementation, do not hot reload the app, kill it, and then run it. Alternatively, you can follow the above steps mentioned:
flutter clean
flutter pub get
flutter run

@DIP-POLLEY
Copy link

The above method helps resolve many issues while installing a new package while running the app.

@mvharikrishnan
Copy link

mvharikrishnan commented Dec 12, 2022

Fix this issue by adding the following to android\app\build.gradle:
android {
compileSdkVersion 33
...
}

@safiullahpk611
Copy link

safiullahpk611 commented Apr 12, 2023

After running flutter pub add file_picker and writing the code implementation, do not hot reload the app, kill it, and then run it. Alternatively, you can follow the above steps mentioned: flutter clean flutter pub get flutter run

its workingwith killing to app

@ujwalnk
Copy link

ujwalnk commented Sep 15, 2023

I don't think hot restart does the job, terminating the app and restarting fixed the 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