简体   繁体   English

flutter 运行与安装命令

[英]flutter run vs install command

I am a beginner in flutter programming.我是 flutter 编程的初学者。 When I learned a few commands, I got a doubt that is当我学习了一些命令时,我有一个疑问是

difference between flutter run and flutter install command? flutter 运行flutter 安装命令之间的区别?

Using flutter help commands, I got this使用 flutter 帮助命令,我得到了这个

install : Install a flutter app on an attached device. install :在连接的设备上安装 flutter 应用程序。

run : Run your Flutter app on an attached device. run :在连接的设备上运行您的 Flutter 应用程序。

But what is the difference and what actually happening in device?但是有什么区别以及设备中实际发生了什么?

It's obvious actually, flutter run lets you debug and test your app in emulator or device before build it, you can use restart, hotstart etc and continue develop your app.实际上很明显, flutter run可以让您在构建之前在模拟器或设备中调试和测试您的应用程序,您可以使用重启、热启动等继续开发您的应用程序。 flutter install will install the app to device after build it as apk. flutter install将在构建为 apk 后将应用程序安装到设备。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM