FlutterToast: MissingPluginException

Exception while invoking

Fluttertoast.showToast(
  msg: _message,
  toastLength: Toast.LENGTH_LONG,
  gravity: ToastGravity.CENTER,
  timeInSecForIos: 1,
  bgcolor: "#e74c3c",
  textcolor: '#ffffff'
);
E/flutter (28857): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter (28857): MissingPluginException(No implementation found for method showToast on channel PonnamKarthik/fluttertoast)
E/flutter (28857): #0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:278:7)
E/flutter (28857): <asynchronous suspension>
E/flutter (28857): #1      Fluttertoast.showToast (package:fluttertoast/fluttertoast.dart:54:33)
E/flutter (28857): <asynchronous suspension>
E/flutter (28857): #2      AppUtils.refresh (package:grom.......

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 25 (1 by maintainers)

Most upvoted comments

@tiholic try totally restart instead of hot reload

I’m getting the same error… but I’m testing for ios. It worked a few moments ago but now throws the same exception. Unhandled Exception: MissingPluginException(No implementation found for method showToast on channel PonnamKarthik/fluttertoast) @PonnamKarthik

I uninstall the app and install again , works for me…

u need to clean and rebuild app … run these commands in terminal to clean: flutter clean to rebuild: flutter run

Rebuild your app. It will work

Uninstall the app from the device. run flutter clean then rebuild the app

flutter v1.1.6 on mac emulator encountered the same issue

and when ‘flutter build apk’, failed with follow

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processReleaseResources'.
> Android resource linking failed
  Output:  /Users/cc/flu/merc/build/app/intermediates/incremental/mergeReleaseResources/merged.dir/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
  /Users/cc/flu/merc/build/app/intermediates/incremental/mergeReleaseResources/merged.dir/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
  /Users/cc/flu/merc/build/app/intermediates/incremental/mergeReleaseResources/merged.dir/values/values.xml:990: error: resource android:attr/fontVariationSettings not found.
  /Users/cc/flu/merc/build/app/intermediates/incremental/mergeReleaseResources/merged.dir/values/values.xml:991: error: resource android:attr/ttcIndex not found.
  /Users/cc/flu/merc/build/app/intermediates/incremental/mergeReleaseResources/merged.dir/values/values.xml:1438: error: resource android:attr/textFontWeight not found.
  error: failed linking references.
...

why not update flutter to latest stable? after build, the dio package failed to requst network, and also flutter_webview_plugin was partially succeed to show link, others shows err::ERR_CACHE_MISS

@PonnamKarthik