Flutter environmental construction

Website address (avoid detours) : flutterChina. club/

Download Flutter_SDK and unzip it to your computer

Develo…

Download and install the JAVa_JDK (jdk1.8 in this case)

Configuring Environment Variables

Add mirror address (pub get pull dependent lift rate when executing the flutter project later)

FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

PUB_HOSTED_URL=https://pub.flutter-io.cn

Add android_SDK environment (address for android_SDK)

ANDROID_HOME = D:\android_SDK

My computer – Properties – Advanced System Settings – Environment Variables – PATH to configure the JAVA_JDK and Flutter_SDK environments

Test environment variables successfully

  1. CMD win + R
  2. Execute the Java version

3. Execute flutter –version

Download Android Studio and install the configuration

  1. When the download is complete, click configure-Settings
  2. Click Plugin and search for flutter to download and install

3. Click System Settings-Android SDK

Modify the SDK storage path and download the required SDK version, and wait for the download to complete (now you can download it without going over the wall and configuring an image)

  1. Win + R performs the Flutter doctor to see if the flutter environment is complete

The first time you install the second flutter, you will need to execute the “Y” command as prompted. The configuration of the flutter environment is complete.

Download and install vscode, skip those who do not use vscode for development

  1. Once installed, download the Flutter Dart plug-in

  1. CTRL + Shift + P opens the command panel and there is usually a prompt to create the flutter project

  1. Follow the instructions to create a Flutter project

Download and install the Nighter simulator

  1. When running, vsCode will have a hint in the lower right corner, emulator, and the version of flutter

  1. If the connection is not on the simulator, can visit www.jianshu.com/p/c183c562c…

Running the Flutter project

  1. Click pubspec.yaml to pull the dependency package

2. After the pull is complete, run the flutter run command and wait until the execution is complete

3. After the project is executed and the simulator runs successfully, the Project Flutter is completed.