wildfirechat / wfc_flutter_plugins

野火flutter插件,包含即时通讯和实时音视频插件
Other
35 stars 26 forks source link

打包出现 Unhandled Exception: MissingPluginException #40

Closed VVVVxs closed 1 year ago

VVVVxs commented 1 year ago

使用最新的example 打包release包时会报错:Unhandled Exception: MissingPluginException

报错内容: E/flutter (28673): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method initProto on channel rtckit) E/flutter (28673): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:294) E/flutter (28673): E/flutter (28673): E/flutter (28673): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method addICEServer on channel rtckit) E/flutter (28673): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:294) E/flutter (28673): E/flutter (28673): #1 MethodChannelRtckit.addICEServer (package:rtckit/rtckit_method_channel.dart:22) E/flutter (28673): E/flutter (28673): E/flutter (28673): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method registerMessage on channel imclient) E/flutter (28673): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:294) E/flutter (28673): E/flutter (28673): E/flutter (28673): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method registerMessage on channel imclient) E/flutter (28673): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:294) E/flutter (28673): E/flutter (28673): E/flutter (28673): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method registerMessage on channel imclient) E/flutter (28673): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:294) E/flutter (28673): E/flutter (28673): E/flutter (28673): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method registerMessage on channel imclient) E/flutter (28673): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:294) E/flutter (28673): E/flutter (28673): E/flutter (28673): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method initProto on channel imclient) E/flutter (28673): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:294) E/flutter (28673): E/flutter (28673):

导致无法正常使用IM服务

imndx commented 1 year ago

哪个端,是怎么操作的?

测试下 Android 端,没问题呀,能正常生成 apk 包,功能也正常。

// 在example/android 目录下执行
./gradlew clean aDebug
VVVVxs commented 1 year ago

安卓端,那我再检查检查是不是我 环境的问题