Resolve "MissingPluginException(No implementation found for method pickImage on channel plugins.flutter.io/image_picker)" Error İn Flutter
28.09.2020 20:11
Resolve "MissingPluginException(No implementation found for method pickImage on channel plugins.flutter.io/image_picker)" Error İn Flutter
After a long research, I was able to solve the "MissingPluginException (No implementation found for method pickImage on channel plugins.flutter.io/image_picker)" error that I encountered when I wanted to use the Image_Picker package.
Here are some solutions that are generally suggested in my research to solve the error, but that do not work for me.
- As the first method, it can be a solution to stop and restart your project. Adding the line may be a solution.
- As the second method, it can be a solution to uninstall your application from the device and install it again.
- As another method, follow the commands flutter packages get , flutter clean , flutter run on the terminal.
- If it doesn't work, if you are working with a version smaller than API29, it may be a solution to add the line android:requestLegacyExternalStorage="true" to the application tag in the AndroidManifest.xml file.
- Another suggestion is to add the following lines to the AndroidManifest.xml file.
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
But none of the above solutions worked for me. After a long effort, I created an empty project and uploaded the image_picker package. When I ran it it worked fine. I realized that other packages in my project were preventing it from working.
When I uninstalled the flutter_facebook_login package in my project, the problem was solved.