preface

Recently, the company needs to study FLUTTER and install the Flutter environment on Windows. The following is a record of the pits stepped in and the solutions adopted during the installation process. If you have similar needs, I hope it can help you.

Refer to the installation and environment configuration and editing tool Settings section on flutter.

Note: be sure to set the image as a domestic image, otherwise the installation will be super slow oh, refer to the link blog.csdn.net/qq_34960412… configure

Step 1: Download, install, and configure global environment variables

Download the corresponding version of Flutter (Dart comes with Flutter). I downloaded the latest version of Flutter 1.22.6

Download and decompress the folder to a folder that you think is appropriate. There is no need to install the folder. Decompress the folder to install the folder, remember the folder, and configure the environment variables for global use.

Step 2: Download the dependencies and check the environment

After you install and configure the global path, use the “flutter” command on your terminal. The first time that flutter will automatically download and install some dependencies, you need to wait. If you do not configure the local mirror, the process will wait until you doubt your life

After this, execute the “Flutter Doctor” on your terminal. This will check that your environment and dependencies are properly installed. If not, an error will be reported. You are prompted to install the appropriate environment or plug-in. I performed this check after installing Android Studio and prompted three warnings, as follows:

  1. Android Lineses verification fails, there is a command behind the prompt message, the terminal execute the command, step by step yes, you can solve the problem
  2. Android Studio does not install the Flutter plugin and Dart plugin. You need to install the corresponding plugin

I’ll talk more about that later

  1. If you can’t find the terminal, you can use Android Studio to open an emulator
Step 3: Install Android Studio and the Flutter plugin

I installed the following version of Flutter. Check this information in the Android Studio Help -> About option. Remember the value behind #AI-.

Install the Flutter plug-in

When INSTALLING Android Studio, I installed the Android SDK automatically. Later, I only installed the Flutter plugin. As mentioned above, there will be a hole in the official tutorial, because there is no flutter plugin in the plugins after Android Studio 3.5. Need in plugins.jetbrains.com/plugin/9212… Download the corresponding version of the package from this website

Installing the DART plug-in

Similar to the Flutter plugin, at this websitePlugins.jetbrains.com/plugin/6351…Download the package of the corresponding version

After downloading, open the Android Studio flie -> Settings as shown in the following image, find the plugins as shown in the following image, and select the following:

Select the zip package you downloaded and install it, as shown below:If you are prompted to restart studio, restart it.

To this step is completed, but using flutter doctor examination, found that plug-in or android studio flutter plugin didn’t mount, various search, finally the blog.csdn.net/kaixinlaok/ in the site… I searched the reason online, and found that there might be a conflict with flutter during git installation, so GIT needs to be installed again. However, I did not install git again. I tentatively executed Git in the terminal, and the flutter re-executed turned out to be normal. What a coincidence.

Re-execute the Flutter Doctor test and pass. Awesome!

Here are some potholes I encountered while installing the Flutter environment, and the process of climbing the potholes, to give you some reference.