tjarvstrand/flutter_timezone

io.flutter.plugin.common.PluginRegistry.Registrar

Closed this issue · 1 comments

Hi i get it error

exception: d:\Users\User\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_timezone-1.0.8\android\src\main\kotlin\net\wolverinebeach\flutter_timezone\FlutterTimezonePlugin.kt:12:48: warning: 'Registrar' is deprecated. Deprecated in Java
exception: import io.flutter.plugin.common.PluginRegistry.Registrar
exception:                                                ^
exception: d:\Users\User\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_timezone-1.0.8\android\src\main\kotlin\net\wolverinebeach\flutter_timezone\FlutterTimezonePlugin.kt:23:37: warning: 'Registrar' is deprecated. Deprecated in Java
exception:         fun registerWith(registrar: Registrar) {
exception:                                     ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Hello and thanks for the report. The use of Registrar is unfortunately required to maintain backward compatibility with apps that still use the v1 Flutter embedding. You should only be seeing warnings for this though, and not actual errors.

I'll close this, but feel free to reopen if you think there is indeed a problem here.