1. 安装Flutter

在 windows 安装:https://flutter.io/setup-windows/

1. 下载 flutter sdk

https://storage.googleapis.com/flutter_infra/releases/beta/windows/flutter_windows_v0.5.1-beta.zip

2. 安装 flutter sdk

指定安装路径,注意:不要将安装目录设置为 C:\Program Files\

3. 运行 flutter_console.bat

在 flutter 目录中双击 flutter_console.bat

4. 添加 Flutter 到环境变量

将 flutter\bin 目录添加到 PATH 环境变量中

5. 验证是否安装完成

运行 flutter doctor:

flutter doctor

C:\Users\20160328>flutter doctor

  ╔�������������������������
â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•
�������������������������╗
  â•‘                 Welcome to Flutter! - https://flutter.io
 â•‘
  â•‘ The Flutter tool anonymously reports feature usage statistics and crash
  â•‘ reports to Google in order to help Google contribute improvements to
  â•‘ Flutter over time.
 â•‘
  â•‘ Read about data we send with crash reports:
  â•‘ https://github.com/flutter/flutter/wiki/Flutter-CLI-crash-reporting
 â•‘
  â•‘ See Google's privacy policy:
 â•‘
  â•‘ https://www.google.com/intl/en/policies/privacy/
  â•‘ Use "flutter config --no-analytics" to disable analytics and crash reporting.
 â•‘
  ╚�������������������������
â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•�â•
��������������������������

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 6.1.7601], lo
cale zh-CN)

6. 安装 Android Studio

7. Android Studio 安装 Flutter 插件

  1. 启动 Android Studio
  2. 打开插件首选项(首选项> macOS上的插件,文件>设置> Windows和Linux上的插件)
  3. 选择 Browse repositories ...,选择 Flutter 插件并单击 install

安装 Flutter 插件会自动安装 Dart 插件

你可能感兴趣的:(1. 安装Flutter)