flutter 配置

vim ~/.bash_profile

Flutter 镜像配置

export PATH=/opt/flutter/bin:$PATH
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

/opt/flutter/修改为你自己的flutter路径

source ~/.bash_profile 使你的配置生效

flutter doctor 检测你的flutter配置情况

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.7.8+hotfix.3, on Mac OS X 10.14.6 18G2022,
locale zh-Hans-CN)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
[✓] iOS tools - develop for iOS devices
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.44.2)
[✓] Connected device (1 available)

• No issues found! 表示你的flutter配置已完备

你可能感兴趣的:(flutter 配置)