Flutter常用命令和mac电脑常用命令

ⅰ亾dé卋堺 提交于 2021-02-12 15:24:00

0.  flutter create example_demo  新建flutter项目

1、flutter packages get  安装新增的包

2、flutter run 运行flutter项目:

  r 刷新xian jian x页面  R刷新重构程序  h帮助 d和q退出  o 是ios和andriod的切换

3、flutter doctor 检测必要依赖是否安装成功

 

4.flutter运行.当有多个模拟器的时候,指定只运行于一个模拟器的方法:

More than one device connected; please specify a device with the '-d <deviceId>' flag, oruse '-d all' to act on all devices.

“xx”的 iPhone • ebde052af5111ac5ff3b41dasdasdasdadd6cbfedc • ios • iOS 12.0.1

iPhone Xs Max    • 6F2F0D31-9EDF-43EF-AC8D-558FC52D9EC4    • ios • iOS 12.1 (simulator)

flutter run -d all  在所有模拟器上运行项目

flutter run -d 6F2F0D31-9EDF-43EF-AC8D-558FC52D9EC4

mac电脑常用命令:

cd .. 返回上一个目录

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!