It is enough for windows to realize the construction and configuration of fluent environment

Recently, flutter officially entered the pit. First, I started from the environment construction. I read a lot of information about the windows environment construction on the Internet, which are basically written according to the official documents. After reading it, I feel that I might as well go directly to the official documents.

Official English document portal: get started: install on windows.

This paper mainly summarizes my actual construction process. Finally, it is found that it can be successfully built not necessarily according to those blogs or official documents on the Internet.

Generally speaking, there are only 4 things needed. Once you find the configuration, it's OK;

(1) Fluent SDK (it is recommended to download the official website and use it directly after downloading)

(2) Download dart plugin

(3) Download the flutter plug-in

(4) Prepare the IDE (Android studio or IntelliJ idea) and configure the SDK of fluent

explain

The detailed installation process is as follows:

1. Install the fluent SDK

First download the flutter in the official documentation_ windows_ The v0.4.4-beta.zip package (as shown in the red box in the following figure) is decompressed to the location specified by yourself. After decompressing, the folder name is called flutter, which is the flutter SDK (required for configuration in the IDE later). At the same time, add the bin in the folder to the environment variable.

2. Install dart and fluent plug-ins

(1) Fluent needs the support of the following two plug-ins:

(2) Then download the dart plug-in in Android studio or IntelliJ idea. If you can't download it, it's the reason why there is no scientific Internet access. You can also download it through the following link. If it is downloaded by yourself through the following link, unzip the downloaded zip package and copy the whole folder to the plugins folder of the IDE you use (the whole folder can be copied to plugins).

Dart_ jb51.rar

(3) Then download the fluent IntelliJ plug-in in Android studio or IntelliJ idea. If you can't download it, it's the reason why there is no scientific Internet access. You can also download it through the following link. If it is downloaded by yourself through the following link, unzip the downloaded zip package and copy the whole folder to the plugins folder of the IDE you use (the whole folder can be copied to plugins).

Flutter-intellij_ jb51.rar

(4) Note: the installation steps of using your own ide are as follows:

1) Start Android Studio 2) open the plug-in panel as shown in the figure below 3) select [browse repositories...], check the shutter plug-in and click Install 4) click Yes when prompted whether to install dart plug-in 5) restart as after installation

In fact, we have everything we need to prepare. Let's see how to configure it.

3. Configure dart and fluent plug-ins into our ide

I use IntelliJ idea, similar to Android studio.

Open IDE, create new project - > select fluent, select SDK path, next - > name the project name (in lowercase), and select project storage path, and then OK.

After you go in, you may see that you haven't downloaded the project resources. Don't panic. Let's configure it. The details are as follows: the first is the path to configure the dartsdk (pointing to bin \ cache \ dart.sdk in the previous flutter SDK), and the second is the path to configure the flutter SDK. After the configuration is completed, restart the IDE and re create a new project. The waiting time will be long. Wait patiently and start the flutter journey.

In addition, there are several notes:

(1) I am a mobile developer, so both Android studio and IntelliJ idea have been built, and the construction of relevant environment can be found on the network.

(2) The previous tutorial in this article is based on IntelliJ idea. If you are using Android studio, you need to upgrade to version 3.1 or above, then download dart and flutter plug-ins in plugins of Android studio, and then restart. The option to create flutter will appear in the project creation interface, and then create a flutter project, Just configure the fluent SDK path described in this article.

(3) Some people may be confused by the information on the Internet, as shown in the figure below. In fact, it's in the flutter we downloaded_ windows_ There is a flutter in the v0.4.4-beta.zip decompression package_ Console.bat. Double click to invoke the following interface. It is the flutter console. We can run the flutter doctor command on the flutter console to detect whether any dependencies are not installed.

(4) For the information package mentioned in the article, if you can't download it, you can leave a message at the end of the article. Give me an email and I can pack and share it.

The above is the whole content of this article. I hope it will help you in your study, and I hope you will support us a lot.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>