Dart environment configuration
1 JDK_Environment
slightly
2 dart_environment
2.1 dart_download
Link: https://dart.cn/get-dart/archive
2.2 dart_installation
unzip dartsdk-windows-x64-release.zip
toD:\dev\dart-sdk
2.3 dart_ configuration environment variables
Variable name (N): DART_SDK
Variable value (V):D:\dev\dart-sdk
2.4 dart_ configuration PATH environment variable
%DART_SDK%\bin
2.5 dart_verification environment
dark --version
3 flutter_environment
3.1 flutter_download
Link: https://flutter.cn/docs/development/tools/sdk/releases?tab=windows
3.2 flutter_installation
unzip flutter_windows_1.17.0-stable.zip
toD:\dev\flutter
3.3 flutter_ configuration environment variables
Variable name (N): FLUTTER_SDK
Variable value (V):D:\dev\flutter
3.4 flutter_ Configure PATH environment variable
%FLUTTER_SDK%\bin
3.4 flutter_ configure domestic mirror sources
1) Domestic image in the Flutter community
Variable name (N): FLUTTER_STORAGE_BASE_URL
Variable value (V):https://storage.flutter-io.cn
Variable name (N): PUB_HOSTED_URL
Variable value (V):https://pub.flutter-io.cn
2) Shanghai Jiao Tong University Linux User Group Domestic Mirror
Variable Name (N): FLUTTER_STORAGE_BASE_URL
Variable Value (V):https://mirrors.sjtug.sjtu.edu.cn
Variable name (N): PUB_HOSTED_URL
Variable value (V):https://dart-pub.mirrors.sjtug.sjtu.edu.cn
3.5 flutter_ verification environment
flutter --version
flutter doctor
flutter config --android-sdk D:\dev\Android\Sdk
flutter doctor --android-licenses
All platforms are done! ! ! hehe! ! !
4 Android Studio installation and configuration
Install the dart and flutter plugins
After installation you can New Flutter Project
5 Flutter_ other commands
flutter devices
flutter run
flutter run -d all
flutter run -d win