Flutter installation and problem solving during the process

First, attach a learning document
https://flutterchina.club/setup-windows/
1. Install the SDK, here is the explanation of windows (use more linux bosses, you shouldn’t need to read my article)
https:/ /flutter.dev/docs/development/tools/sdk/releases#windows
download the latest SDK
ps: you may not be able to access this website, you need FQ or switch the network, if the company wifi is not working, just use home wifi, or directly open the hot spot If not, restart the computer after a short period of time, provided that you have configured the host of this website first. (My own Baidu, why don’t I put the flutter installation package here, because it’s best to use the latest one. When you read my article, it may have been updated a lot)
2. Install android studio, environment variables, etc. to configure themselves on Baidu , It is recommended to use the 3.xx version.
3. Then configure the flutter environment variables. Then run flutter doctor in cmd.
4. Open AS and go to setting->plugins->Markplace. It
Insert picture description here
is very likely that you can’t find anything in it. There are three methods:
1. Do not configure http proxy, connect to mobile phone hotspot, and Unicom Telecom tried next
2. Configure http proxy (Baidu)
3. After closing these two, try
Insert picture description here
to continue to use flutter doctor in the cmd window
flutter doctor --android-licenses Enter y all the way
and install the plug-in to create a new flutter project
Insert picture description here
Select flutter Application finished
and you will be stuck in the creat flutter Project card for a long time.
Open the task manager to end the AS. When you re-create, how did you see the plug-in store before, you use that network environment to create.
Created a virtual machine is to use, and
click here to
Insert picture description here
pop up when the virtual machine management, then you have to create a new virtual machine, the configuration of
Insert picture description here
this point is set to open
Insert picture description here
here how digital election much, I would choose only 1,2 2.
Then Enough.
Among them, 1. You may encounter the problem of port occupation (such as 5037)
netstat -aon|findstr "Occupied port number"
tasklist|findstr "The PID of the port occupied", end it, such as (Google, WeChat, Master Lu) )
2. Mobile phone emulators, such as Yeshen, mumu, find the AndroidSDK and
Insert picture description here
copy it to your emulator bin file, anyway, find xxadb.exe (here, take Yeshen as an example):
Insert picture description here
modify the android SDK Replace the name of adb.exe with nox_adb.exe!
(Ps: Be sure to check after replacing here, it may be replaced by nox_adb.exe(2), this does not work, the adb version is still inconsistent)

Finally, run flutter to the virtual machine, even if it is successful
(all these suggestions are now successful in the virtual machine that comes with Android Studio, and then try your own emulator and real machine, I am because Android's own virtual machine is easy to crash, solve No, I only used the Night God Simulator.
There are other problems in the middle. You can refer to the flutter development video (Station B, Mukenet), which specifically explains the installation of flutter)
. The big guys of CSDN will answer you, I saw a question that can help, and I will try to answer it, online from time to time,

Guess you like

Origin blog.csdn.net/weixin_43722571/article/details/113108882