flutter 集成报MissingPluginException
Yy****************71
发布于 1 年前
119来自北京移动统计 U-App
umeng_common_sdk: ^1.3.0
UmengCommonSdk.initCommon(AndroidKey, iOSKey, "flutter");
安卓代码:
UMConfigure.preInit(this, "秘钥", "apk");
报错:
MissingPluginException(No implementation found for method initCommon on channel umeng_common_sdk)
stack:#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:365:7)
<asynchronous suspension>
#1 UmengCommonSdk.initCommon (package:umeng_common_sdk/umeng_common_sdk.dart:17:29)
<asynchronous suspension>
你们文档写的不清楚,很多东西没写,其实安卓还需要手动执行这句才行,不过还没收到数据:
flutterEngine.getPlugins().add(new UmengCommonSdkPlugin());
iOS也报这个错,也按照文档执行这个了
[UMConfigure initWithAppkey:@"秘钥" channel:@"AppStore"];
