我正在使用带有Firebase动态链接的Flutter Share插件版本^ 0.6.5 + 2。在调试模式下运行时,该插件可以正常工作,但是当我使用以下方式创建发布APK时:
flutter build apk --release
或flutter run --release,共享插件出现错误
E/flutter (17160): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: MissingPluginException(No implementation found for method share
on channel plugins.flutter.io/share)
E/flutter (17160): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159)
E/flutter (17160): <asynchronous suspension>
E/flutter (17160): #1 JobDetailState._onShare (package:flairboat_app/pages/screen/JobDetails.dart:136)
E/flutter (17160): <asynchronous suspension>
E/flutter (17160):
我尝试干净地运行Flutter,然后再次构建或运行,但仍然会出现相同的错误