pinkfish / flutter_native_timezone

Apache License 2.0
78 stars 156 forks source link

MissingPluginException(No implementation found for method getLocalTimezone on channel flutter_native_timezone) #9

Closed MichaelHipp closed 3 years ago

MichaelHipp commented 4 years ago

Using code from the example, I'm getting this exception. Any help?

E/flutter ( 3330): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method getLocalTimezone on channel flutter_native_timezone)
E/flutter ( 3330): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:154:7)
E/flutter ( 3330): <asynchronous suspension>
E/flutter ( 3330): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:329:12)
E/flutter ( 3330): #2      FlutterNativeTimezone.getLocalTimezone (package:flutter_native_timezone/flutter_native_timezone.dart:11:34)
Tourenathan-G5organisation commented 4 years ago

I'm also getting the same problem on my android device

atn832 commented 4 years ago

It happened to me too. Running flutter clean fixes it.

Someone posted the workaround on a similar issue at https://github.com/flutter/flutter/issues/10912#issuecomment-357932578.

simprolog commented 3 years ago

or maybe it's also the R8 build configs: https://stackoverflow.com/a/66122669/15177345

nohli commented 3 years ago

Having this issue on iOS

It literally says Package does not support Flutter platform iOS: https://pub.dev/packages/flutter_native_timezone/score

@pinkfish there seems to be something wrong with the latest version.

pinkfish commented 3 years ago

I think this is fixed now?