0

我最近添加了 quick_actions 插件在调试模式下工作正常,但在发布模式下显示空白屏幕。

在日志中发现这些问题。

[ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation found for method getLaunchAction on channel plugins.flutter.io/quick_actions)
    #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:157)
    <asynchronous suspension>
    #1      QuickActions.initialize (package:quick_actions/quick_actions.dart:68)

[ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation found for method setShortcutItems on channel plugins.flutter.io/quick_actions)
    #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:157)
4

1 回答 1

6

我为 google_fonts 包发现了同样的问题。截至目前,要从发布模式中删除此问题,我在android 文件夹shrinkResources false的应用级别文件中添加。build.grade让我知道这是否有帮助。

于 2021-01-05T06:30:55.700 回答