Flutter 命令行创建项目

2020-05-22  本文已影响0人  雪域红鹰

Flutter命令行创建项目:
1.打开终端 运行flutter doctor 检测 2.使用命令创建项目 flutter create flutter_demo 项目名称中不能包含大写字符,否则创建失败 3cd flutter_demo

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

sdk gphone x86 arm         • emulator-5554                        • android-x86
• Android 10 (API 29) (emulator)
iPhone SE (2nd generation) • 3DF5DFB7-1F59-47FD-9E4E-FD3B170FE0EA • ios
• com.apple.CoreSimulator.SimRuntime.iOS-13-4 (simulator)

因为当前有ios和android模拟器需要选择在那个模拟器上运行

$ flutter run -d 'iPhone SE (2nd generation)'
上一篇下一篇

猜你喜欢

热点阅读