flutter环境配置
2018-12-18 本文已影响23人
纱云
1.终端依次执行下列指令
export PUB_HOSTED_URL=https://pub.flutter-io.cn export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn git clone -b dev https://github.com/flutter/flutter.git export PATH="$PWD/flutter/bin:$PATH" cd ./flutter flutter doctor
![](https://img.haomeiwen.com/i1475963/353d5f447f0b37bc.png)
1.依次执行终端提示
brew update
brew install --HEAD usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
2.Android Studio----plugin---搜索flutter--下载-重启
3.再次执行flutter doctor
![](https://img.haomeiwen.com/i1475963/9382fa77f9c4be26.png)