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.结果
20180807162239433 (1).png5.Android Studio中插件配置
image6.Android Studio中创建Flutter工程
20180807162729259.png此处选择 Flutter SDK 的下载路径
20180807163101949.png
7.成功
20180807163153949.png参考
https://blog.csdn.net/qq_31017737/article/details/81483807
https://blog.csdn.net/qq_37199105/article/details/84677705
网友评论