美文网首页
Mac 搭建flutter环境

Mac 搭建flutter环境

作者: iPhone | 来源:发表于2019-06-26 10:34 被阅读0次
    //1.下载Xcode , 最好是在appstore下载
    
    //2.下载sdk
    git clone -b beta [https://github.com/flutter/flutter.git](https://github.com/flutter/flutter.git)**
    
    // 3.设置环境变量
        //3.1 打开  home
           输入: vim ./.bash_profile
        //3.2 (输入)  enter 
        //3.3   (输入) i
        //3.4 复制变量
          export PUB_HOSTED_URL=[https://pub.flutter-io.cn](https://pub.flutter-io.cn/)
          export FLUTTER_STORAGE_BASE_URL=[https://storage.flutter-io.cn]
          (https://storage.flutter-io.cn/) export PATH=`pwd`/flutter/bin:$PATH export 
          PATH=$HOME/flutter/bin:$PATH
      // 3.5 esc
      //3.6 :wq
      // 3.7 enter
    //4. 关闭终端,重新打开
    //5. 输入 echo $PATH 看看flutter 是否配置成功
    //6. flutter doctor (提示找不到命令,第三步重来)
    //7.直到 6 完全完成后,恭喜你已经配置成功
    
    

    相关文章

      网友评论

          本文标题:Mac 搭建flutter环境

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