Flutter OSX安装

1、下载flutter

git clone  -b beta https://github.com/flutter/flutter.git

2、添加flutter相关工具到path中

export PATH=`pwd`/flutter/bin:$PATH

3、运行 flutter doctor 查看依赖是否安装完成

flutter doctor

运行完成的结果:

[✓] Flutter (Channel beta, v1.6.3, on Mac OS X 10.13.6 17G65, locale en-CN)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2017.1.5)
[✓] VS Code (version 1.25.0)
[✓] Connected device (2 available)

• No issues found!

中间可能会出现iOS或Android相关错误
根据提示一个一个解决即可
如Android插件及xcode的命令行工具等

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