skip to Main Content

But I’m facing this problem again and again "Unhandled Exception: MissingPluginException(No implementation found for method compressWithFileAndGetFile on channel flutter_image_compress)"

Trying to compress the image by this:

File? compressedFile = await FlutterNativeImage.compressImage(
          scannedImage!.path,
          quality: 20,
          percentage: 60);

and receiving an error Unhandled Exception: MissingPluginException(No implementation found for method compressWithFileAndGetFile on channel flutter_image_compress)

2

Answers


  1. The error Unhandled Exception: MissingPluginException occurs mostly when we add new package in project but we don’t stop the app and directly run it when it is already running, So if you stop the project then run again the issue gets resolved. Also try running pub get command.

    Login or Signup to reply.
  2. flutter clean
    flutter run
    

    it will be enough

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search