我正在尝试构建Android应用程序,但收到一个错误MissingPluginException(在channel testfairy上找不到方法log的实现):
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颤振(通道稳定,1.22.2)Dart版本2.10。2.此外,我还添加了analysis\u选项。yaml
:
analyzer:
enable-experiment:
- non-nullable
我使用命令flatterrun--enable experiment=non-nullable--no sound null safety
运行应用程序。
如何解决此错误?
@阿基夫为这个问题指出了正确的方向。事实上,这是由于本地_通知插件。通过将颤振切换到beta通道(颤振1.23.0-18.1.pre•通道beta),我成功地解决了这个问题。
E/flatter(13237):[错误:flatter/lib/ui/ui\u dart\u state.cc(177)]未处理的异常:MissingPluginException(在lyokone/location通道上找不到getLocation方法的实现) 我正在使用位置和地点选择器插件 未处理的异常:平台异常(错误,java.lang.非法状态异常:试图创建未注册类型的平台视图:plug
我正在做一个项目,在与我的队友合并代码之前,package sms_autofill运行正常,但在代码合并后,我已经运行了Flatter clean,但它仍然显示两个错误,如下所示: 和 我的代码: 颤振博士-v: pubspec。亚马尔: 我不知道它有什么问题,我已经尝试在互联网上搜索,似乎没有与之相关的解决方案。
我有几个插件有问题 Image_Picker:^0.6.2+3,位置:^2.3.5,... 我真的扑得干干净净,什么都没变 Android设备:SM-N900 和我的代码:
未处理的异常:MissingPluginException(在channel Flatter_inapp上找不到方法initConnection的实现)。当我在android上使用Flatter in-app purchase插件时,会出现MissingPluginException异常。在iOS上,它运行得很好 当我运行或调试应用程序时,会出现以下错误:
我刚刚从颤振中复制了代码。dev并对其进行了修改,出现以下错误 E/flatter(2639):[ERROR:flatter/lib/ui/ui\u dart\u state.cc(177)]未处理的异常:MissingPluginException(在通道My channel上找不到方法myNativeFunction的实现)*我想将一条消息从本机java代码打印到Flatter ui*
我得到这个错误时,调用请求权限()方法的Firebase消息。 [错误:flatter/lib/ui/ui_dart_state.cc(209)]未处理的异常:MissingPluginException(未找到方法消息传递的实现#通道插件上的requestPermission.flatter.io/firebase_消息传递)E/flatter(7180):#0 convertPlatformE