本文介绍了应用仅在Flutter上以调试模式运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定我的Android Studio IDE出了什么问题,但是每当我在flutter中运行该应用程序时,它总是在调试模式下运行.请查看角落右侧的标签.

I am not sure what is wrong with my Android Studio IDE, but whenever I run the app inside flutter it always runs on debug mode. Please see the label on the right side of the corner.

日志:

在调试模式下在POCO F1上启动lib \ main.dart ...

Launching lib\main.dart on POCO F1 in debug mode...

推荐答案

您是否尝试过以发布"模式运行代码?

Have you tried running your code in "release" mode?

在终端内,您可以通过flutter run --release进行操作.

Within a terminal you can do that via flutter run --release.

在Android Studio中,您可以double tap shift弹出search everywhere命令窗口.如果仅键入release,则应该可以找到Flutter Run main.dart in Release Mode命令.

In Android Studio you could double tap shift to bring up the search everywhere command window. If you simply type release you should be able to find the Flutter Run main.dart in Release Mode command.

您也可以在运行"下的菜单中找到它,就像这样:

Also you can find this in the menu under "Run" just like so:

这篇关于应用仅在Flutter上以调试模式运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 22:56