alias flutter_dev=~/Library/Android/flutter_dev/bin/flutter
保存之后,新建Shell窗口验证默认flutter环境,输入:
1
flutter doctor
结果:
1 2 3 4 5 6 7 8 9 10
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, v1.12.13+hotfix.10-pre.1, on Mac OS X 10.15.5 19F101, locale zh-Hans-CN) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [✓] Xcode - develop for iOS and macOS (Xcode 11.4.1) [✓] Android Studio (version 4.0) [✓] VS Code (version 1.45.1) [✓] Connected device (1 available)
• No issues found!
验证flutter_dev环境,输入:
1
flutter_dev doctor
结果:
1 2 3 4 5 6 7 8 9 10 11
[✓] Flutter (Channel dev, 1.19.0-3.0.pre, on Mac OS X 10.15.5 19F101, locale zh-Hans-CN) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [✓] Xcode - develop for iOS and macOS (Xcode 11.4.1) [✓] Chrome - develop for the web [✓] Android Studio (version 4.0) [✓] VS Code (version 1.45.1) [✓] Connected device (4 available)