未处理的异常:MissingPluginException(在channel Flatter_inapp上找不到方法initConnection的实现)。当我在android上使用Flatter in-app purchase插件时,会出现MissingPluginException异常。在iOS上,它运行得很好
当我运行或调试应用程序时,会出现以下错误:
E/flutter ( 7718): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation found for method initConnection on channel flutter_inapp)
E/flutter ( 7718): #0 MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:157
E/flutter ( 7718): <asynchronous suspension>
E/flutter ( 7718): #1 MethodChannel.invokeMethod
package:flutter/…/services/platform_channel.dart:332
E/flutter ( 7718): #2 FlutterInappPurchase.initConnection
package:flutter_inapp_purchase/flutter_inapp_purchase.dart:85
E/flutter ( 7718): <asynchronous suspension>
E/flutter ( 7718): #3 PaymentService.initConnection
package:social_app/services/payment_service.dart:98
E/flutter ( 7718): #4 _CourseTabState.fetchCarevanAcademy
package:social_app/…/course_tab/course_tab.dart:96
E/flutter ( 7718): <asynchronous suspension>
E/flutter ( 7718): #5 _CourseTabState.initState
package:social_app/…/course_tab/course_tab.dart:38
E/flutter ( 7718): #6 StatefulElement._firstBuild
package:flutter/…/widgets/framework.dart:4765
E/flutter ( 7718): #7 ComponentElement.mount
package:flutter/…/widgets/framework.dart:4601
E/flutter ( 7718): #8 Element.inflateWidget
package:flutter/…/widgets/framework.dart:3569
E/flutter ( 7718): #9 MultiChildRenderObjectElement.mount
package:flutter/…/widgets/framework.dart:6236
E/flutter ( 7718): #10 Element.inflateWidget
package:flutter/…/widgets/framework.dart:3569
E/flutter ( 7718): #11 Element.updateChild
package:flutter/…/widgets/framework.dart:3327
E/flutter ( 7718): #12 ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:4652
E/flutter ( 7718): #13 Element.rebuild
package:flutter/…/widgets/framework.dart:4343
E/flutter ( 7718): #14 ComponentElement._firstBuild
package:flutter/…/widgets/framework.dart:4606
E/flutter ( 7718): #15 ComponentElement.mount
package:flutter/…/widgets/framework.dart:4601
E/flutter ( 7718): #16 Element.inflateWidget
package:flutter/…/widgets/framework.dart:3569
E/flutter ( 7718): #17 Element.updateChild
package:flutter/…/widgets/framework.dart:3327
E/flutter ( 7718): #18 ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:4652
E/flutter ( 7718): #19 Element.rebuild
package:flutter/…/widgets/framework.dart:4343
E/flutter ( 7718): #20 ComponentElement._firstBuild
package:flutter/…/widgets/framework.dart:4606
E/flutter ( 7718): #21 ComponentElement.mount
package:flutter/…/widgets/framework.dart:4601
E/flutter ( 7718): #22 Element.inflateWidget
package:flutter/…/widgets/framework.dart:3569
E/flutter ( 7718): #23 Element.updateChild
package:flutter/…/widgets/framework.dart:3327
E/flutter ( 7718): #24 ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:4652
E/flutter ( 7718): #25 Element.rebuild
package:flutter/…/widgets/framework.dart:4343
E/flutter ( 7718): #26 ComponentElement._firstBuild
package:flutter/…/widgets/framework.dart:4606
E/flutter ( 7718): #27 ComponentElement.mount
package:flutter/…/widgets/framework.dart:4601
E/flutter ( 7718): #28 Element.inflateWidget
package:flutter/…/widgets/framework.dart:3569
E/flutter ( 7718): #29 MultiChildRenderObjectElement.mount
package:flutter/…/widgets/framework.dart:6236
E/flutter ( 7718): #30 Element.inflateWidget
package:flutter/…/widgets/framework.dart:3569
关闭应用程序并执行flatter run命令。
我在这里得到这个错误。并且,试图解决它。 > E/flatter(14838):[错误:flatter/lib/ui/ui_dart_state.cc(177)]未处理的异常:缺少PluginException(在通道插件上找不到方法getApplicationDocumentsDirectory.flatter.io/path_provider的实现)E/flatter(14838):\0 Ge
我正在尝试构建Android应用程序,但收到一个错误MissingPluginException(在channel testfairy上找不到方法log的实现): TestFairy插件的当前版本:TestFairy:^2.0。1颤振(通道稳定,1.22.2)Dart版本2.10。2.此外,我还添加了: 我使用命令运行应用程序。 如何解决此错误?
E/flatter(13237):[错误:flatter/lib/ui/ui\u dart\u state.cc(177)]未处理的异常:MissingPluginException(在lyokone/location通道上找不到getLocation方法的实现) 我正在使用位置和地点选择器插件 未处理的异常:平台异常(错误,java.lang.非法状态异常:试图创建未注册类型的平台视图:plug
我刚刚从颤振中复制了代码。dev并对其进行了修改,出现以下错误 E/flatter(2639):[ERROR:flatter/lib/ui/ui\u dart\u state.cc(177)]未处理的异常:MissingPluginException(在通道My channel上找不到方法myNativeFunction的实现)*我想将一条消息从本机java代码打印到Flatter ui*
我的颤振应用程序在启动屏幕上冻结,我得到以下错误日志: 看起来问题就在这里:[ERROR: flutter/lib/ui/ui_dart_state.cc(148)]未处理的异常:缺少插件异常(在通道plugins.flutter.io/path_provider上没有找到方法getApplication ationDocumentsDirectory的实现) 已经这样做了: -删除了所有插件并重
我正在做一个项目,在与我的队友合并代码之前,package sms_autofill运行正常,但在代码合并后,我已经运行了Flatter clean,但它仍然显示两个错误,如下所示: 和 我的代码: 颤振博士-v: pubspec。亚马尔: 我不知道它有什么问题,我已经尝试在互联网上搜索,似乎没有与之相关的解决方案。