美文网首页
Flutter 命令行创建项目

Flutter 命令行创建项目

作者: 雪域红鹰 | 来源:发表于2020-05-22 00:17 被阅读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)'
    

    相关文章

      网友评论

          本文标题:Flutter 命令行创建项目

          本文链接:https://www.haomeiwen.com/subject/ctvhahtx.html