本文介绍了发布模式下quick_actions插件的MissingPluginException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我最近添加了quick_actions插件,在调试模式下可以正常工作,但是在发布模式下显示空白屏幕.
I recently added quick_actions plugin works fine in debug mode but shows a blank screen in release mode.
在日志中发现了这些问题.
[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)
推荐答案
我在google_fonts包中发现了同样的问题.到目前为止,为了从发布模式中消除此问题,我在android文件夹的应用程序级别 build.grade
文件中添加了 shrinkResources false
.让我知道是否有帮助.
I found the same issue for google_fonts package. As of now to remove this issue from the release mode I added shrinkResources false
in the app level build.grade
file of android folder. Let me know if this helps.
这篇关于发布模式下quick_actions插件的MissingPluginException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!