未处理的异常:MissingPluginException(在通道 testfairy 上未找到方法日志的实现)

Unhandled Exception: MissingPluginException(No implementation found for method log on channel testfairy)

我正在尝试构建一个 Android 应用程序,但收到错误消息 MissingPluginException(未在频道 testfairy 上找到方法日志的实现):

E/flutter ( 8121): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation found for method initialize on channel dexterous.com/flutter/local_notifications)
E/flutter ( 8121): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:157:7)
E/flutter ( 8121): <asynchronous suspension>
E/flutter ( 8121): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12)
E/flutter ( 8121): #2      AndroidFlutterLocalNotificationsPlugin.initialize (package:flutter_local_notifications/src/platform_flutter_local_notifications.dart:67:27)
E/flutter ( 8121): #3      FlutterLocalNotificationsPlugin.initialize (package:flutter_local_notifications/src/flutter_local_notifications_plugin.dart:97:13)
E/flutter ( 8121): #4      NotificationHelper.initNotifications (package:boxview_mobile_flutter/services/notification_helper.dart:23:37)
E/flutter ( 8121): #5      new Routes (package:boxview_mobile_flutter/routes.dart:49:26)
E/flutter ( 8121): #6      main (package:boxview_mobile_flutter/main.dart:4:7)
E/flutter ( 8121): #7      _runMainZoned.<anonymous closure>.<anonymous closure> (dart:ui/hooks.dart:231:25)
E/flutter ( 8121): #8      _rootRun (dart:async/zone.dart:1190:13)
E/flutter ( 8121): #9      _CustomZone.run (dart:async/zone.dart:1093:19)
E/flutter ( 8121): #10     _runZoned (dart:async/zone.dart:1630:10)
E/flutter ( 8121): #11     runZonedGuarded (dart:async/zone.dart:1618:12)
E/flutter ( 8121): #12     _runMainZoned.<anonymous closure> (dart:ui/hooks.dart:223:5)
E/flutter ( 8121): #13     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:301:19)
E/flutter ( 8121): #14     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

TestFairy插件的当前版本:testfairy:^2.0.1 Flutter(频道稳定,1.22.2) 飞镖版本 2.10.2。 另外,我添加了 analysis_options.yaml:

analyzer:
  enable-experiment:
    - non-nullable

我 运行 使用命令 flutter run --enable-experiment=non-nullable --no-sound-null-safety 的应用程序。

如何解决这个错误?

@Akif 指出了问题原因的正确方向。事实上,这是由于 local_notifications 插件。我设法通过将 flutter 切换到 beta 通道(Flutter 1.23.0-18.1.pre • channel beta)来解决这个问题。