安装
笔者环境是ubuntu 16.64 X64, 机器上已经搭建好安卓环境, 整个过程安装比较顺利
- 安装安卓环境
略 -
flutter
运行环境
- 下载
flutter
SDK, - 新建flutter目录并解压sdk到目录
mkdir -p /opt/flutter && cd /opt/flutter
tar xf ~/Downloads/flutter_linux_v1.0.0-stable.tar.xz
- 将flutter环境变量加入到zshrc/bashrc中
vi ~/.zshrc
export PATH=$PATH:/opt/flutter/flutter/bin
source ~/.zshrc
- 运行flutter诊断
flutter doctor
optouts:
➜ ~ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.0.0, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.0)
[✓] Android Studio (version 3.1)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[!] VS Code (version 1.29.1)
[✓] Connected device (1 available)
! Doctor found issues in 1 category.
- 编辑器
笔者用的VS Code, 需要安装flutter
和dart
两个插件(安装flutter会自动安装dart)
参考:flutter官网
网友评论