1.下载Flutter源码 (官方建议下载beta分支)
git clone -b beta https://github.com/flutter/flutter.git
2.配置环境变量
1.打开(在本机名目录下敲打此命令)
open -e .bash_profile
2.添加路径(在bash_profile中添加此内容)
export PATH=${PATH}:下载的文件夹路径/flutter/bin:$PATH
3.刷新(在本机名目录下敲打此命令)
source .bash_profile
3.检查依赖项
flutter doctor
4.结果
5.Android Studio中插件配置
6.Android Studio中创建Flutter工程
此处选择 Flutter SDK 的下载路径
7.成功
参考
https://blog.csdn.net/qq_31017737/article/details/81483807
https://blog.csdn.net/qq_37199105/article/details/84677705