前提:已安装好Android Studio
1、下载Window版本Flutter, https://flutter.dev/docs/get-started/install/windows
解压到目录 D:\Program Files
(或用到该目录使用 git clone https://github.com/flutter/flutter.git 安装)
2、配置全局命令
环境变量的Path路径 (WINDOWS如何配置Path环境变量 https://jingyan.baidu.com/article/60ccbcebad4fe964cab197c7.html )
3、Android Studio 安装 Flutter和dart的Plugins
打开android studio》file》setting》plugins,
问题:
(1)[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
解决方法: flutter doctor --android-licenses 一路y
(2)JAVA_HOME is not set and no ‘java’ command could be found in your PATH
解决方案:检查是否有安装 了jdk,然后配置PATH系统变量
http://www.somode.com/jiaocheng/1682.html
来源:oschina
链接:https://my.oschina.net/u/180293/blog/4489682