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
- CMD win + R
- Execute the Java version
3. Execute flutter –version
Download Android Studio and install the configuration
- When the download is complete, click configure-Settings
- 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)
- 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
- Once installed, download the Flutter Dart plug-in
- CTRL + Shift + P opens the command panel and there is usually a prompt to create the flutter project
- Follow the instructions to create a Flutter project
Download and install the Nighter simulator
- When running, vsCode will have a hint in the lower right corner, emulator, and the version of flutter
- If the connection is not on the simulator, can visit www.jianshu.com/p/c183c562c…
Running the Flutter project
- 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.