Flutter学习笔记一:安装(macos)

一、下载:

  • 镜像信息:https://flutter-io.cn/
  • flutter中文站:https://flutterchina.club/
  • flutter git地址:https://github.com/flutter
  • 实战教程:https://book.flutterchina.club/
  • 百度云盘:https://pan.baidu.com/s/1eP98op9GgLinDiC8ciaCGA

二、配置环境变量:

  • vim ~/.bash_profile
export PUB_HOSTED_URL=https://pub.flutter-io.cn //国内用户需要设置(添加镜像)
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn //国内用户需要设置(添加镜像)
export PATH=PATH_TO_FLUTTER_GIT_DIRECTORY/flutter/bin:$PATH //PATH_TO_FLUTTER_GIT_DIRECTORY为flutter的安装路径
  •  vim ~/.zshrc
source ~/.bash_profile
  • 检查插件是否安装完整
flutter doctor

 三、AndroidStudio插件: 

Preferences>Plugins>Browse repositories…,搜索Flutter,找到后install,安装完成后重启

你可能感兴趣的:(Android,Flutter)