美文网首页
Flutter安装

Flutter安装

作者: 吃不胖的瘦子呀 | 来源:发表于2020-03-13 11:07 被阅读0次

flutter安装 --- Mac环境

  • 安装flutter sdk
终端
cd xxx
git clone -b master https://github.com/flutter/flutter.git
./flutter/bin/flutter --version
  • 添加国内镜像
open ~/.bash_profile
export PUB_HOSTED_URL=https://pub.flutter-io.cn   //国内用户需要设置
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn   //国内用户需要设置
export PATH=`xxx`/flutter/bin:$PATH   (xxx)为flutter sdk安装地址
如果使用的是zsh,终端启动时 ~/.bash_profile 将不会被加载,解决办法就是修改 ~/.zshrc ,在其中添加:source ~/.bash_profile
  • 让环境变量生效
source ~/.bash_profile
  • 检测flutter 环境
flutter doctor

相关文章

  • Mac系统下Flutter的安装

    mac系统安装flutter分三步: 安装flutter sdk flutter环境变量配置 建立flutter应...

  • Flutter安装

    Flutter安装 一、安装 从GitHub上下载flutter,下载地址:MAC版本Flutter[https:...

  • Flutter--环境配置

    1 安装Flutter Flutter的安装可以参照Flutter官网,下载SDK到本地 因为Flutter的SD...

  • 开始学习 Flutter

    电脑上安装相关的软件 安装Flutter SDK有关安装Flutter SDK 大家最好是看Flutter的官方文...

  • Flutter 入门

    安装Flutter 创建Flutter moudle 问题 flutter: command not found

  • Flutter 使用总结

    Flutter 使用总结 Flutter 安装 下载:Flutter SDK[https://flutter.de...

  • Mac系统flutter环境搭建

    Flutter中文官网 flutter 用这个 1、homebrew安装 -安装 homebrew,已安装跳过-打...

  • MAC 安装flutter

    安装flutter 1.安装android studio ,打开配置plugin 下载安装flutter 2.an...

  • Flutter环境配置—Android Licences无法授权

    Flutter环境安装官方文档Mac版传送门:Flutter安装 Flutter的安装方式,官网已经写的比较详细了...

  • Flutter Mac开发环境搭建

    mac系统 安装flutter 分三步:安装flutter sdkflutter环境变量配置 去Flutter官网...

网友评论

      本文标题:Flutter安装

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