1. The Flutter environment

1.open ~/.bash_profile ``` export PUB_HOSTED_URL=https://pub.flutter-io.cn export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn export PATH=/Users/xxx/Documents/flutter/bin:$PATH ``` 2.source ~/.bash_profile 3.flutter doctor ========== 4. Close terminal before entering Flutter DoctorCopy the code

2. AndroidStudio configuration

1. Installing the Flutter seems to automatically install the Dart

A.references — > Plugins — > Flutter

P. references – > Plugins – > the Dart

3. Create a Flutter Project

The File - > New Flutter ProjectCopy the code

4. Upgrade the Dart

Brew tap Dart-lang /dart //2 Dart // Error: dart-lang/dart/dart not installed // Looking for MAC brew caches the brew, cache/Users/XXX/Library/caches/Homebrew / / 4. Copy the cp/Users/XXX/Downloads/dartsdk - macos - x64 - the zip/Users/XXX/Library/Caches/Homebrew / / 5. Install Brew Install DartCopy the code

5. Upgrade the Flutter

Go to the flutter directory and update the flutter

Flutter upgrade // Solving version problems requires SDK version >=2.10.0 <3.0.0, version solving failed.Copy the code