安装git
使用镜像
Linux export PUB_HOSTED_URL=https://pub.flutter-io.cn
window 环境变量添加
安装flutter
安装失败
The Flutter directory is not a clone of the GitHub project.
The flutter tool requires Git in order to operate properly;
to set up Flutter, run the following command:
git clone -b stable https://github.com/flutter/flutter.git
用git安装
flutter --version flutter doctor
检测安装
安装Android studio
启动报错
Unable to access Android SDK add-on list
cancel 先不管
最好勾选多个Android SDK(如果遗漏 后面加)
安装插件 dart flutter
file -new flutter project
新建模拟器
报错
重启 F2 打开 允许模拟器开关
运行
--完
??【大坑】注意:如果只输入flutter 或者输入flutter -version, 那么flutter以为是下达了自动更新命令,会自动更新最新版本,这个一定要注意了。
网友评论