Flutter命令行创建项目:
1.打开终端 运行cd 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)'
网友评论