当前位置:网站首页>Flutter series - build a flutter development environment
Flutter series - build a flutter development environment
2022-06-22 19:28:00 【Liuyichu】
Premise : in the light of Android developer (windows Under the system ), already installed Git,AndroidStudio( Suggest 4.0+ edition )
One . download Flutter SDK
Address :https://flutter.dev/docs/development/tools/sdk/releases, stay Stable channel (Windows) Just download the latest version .Flutter The channel version of will keep changing , Please use Flutter Official website . In China, , To get the installation package list or download the installation package normally , You may need to climb over the wall , You can also go. Flutter github Download the installation package under the project , Address :https://github.com/flutter/flutter/releases .( I downloaded it directly from the previous address )
Two . decompression SDK:
1. Will install package zip Unzip until you want to install Flutter SDK The path of ( Such as :C:\FlutterSDK; Be careful , Try not to put flutter Install to a path that requires some high permissions such as C:\Program Files\).
2. stay Flutter Installation directory flutter Found under file flutter_console.bat, Double click Run and start flutter Command line , Next , You can be in Flutter Command line run flutter The command .
3、 ... and . Environment variable configuration
1. Mirror image :
Because of the visit in China Flutter Sometimes there may be restrictions ,Flutter The official set up a temporary image for Chinese developers , You can add the following environment variables to User environment variable ( Note that the user variables , It's not a system variable ) in :
PUB_HOSTED_URL=https://pub.flutter-io.cn
FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
Be careful : This image is temporary , It's not guaranteed to be available all the time , Readers can refer to https://flutter.io/community/china To get the latest news about the mirror server .
As shown in the figure below :
2. Configure system variables flutter/bin:
Copy yourself flutter SDK Next flutter Under folder bin Catalog . System variable found path, double-click , newly added , Just fill it in ( Follow configuration JAVA_HOME Same )
restart windows To accommodate these configurations .
If appear flutter Not inside or outside …Unable to find git in your PATH
It means that you have not configured git environment variable .
stay System variables path Medium plus :

Close after saving cmd Open input again flutter doctor, Here's the picture :

Then focus on Android toolchain: ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses( some Android License not accepted . To solve this problem , Please run :flatter-doctor-android license ), Follow the prompts to execute the command :
choice Y(yes), After execution , In case of other situations , Follow the prompts .
Four . install Flutter Plug ins and Dart plug-in unit
flutter Depend on dart, So install it first dart.
Then restart the editor . Come here flutter The environment has been configured , Can be built flutter Project .
边栏推荐
- 实现领域驱动设计 - 使用ABP框架 - 解决方案概览
- Error in created hook: “TypeError: Cannot read property ‘tableId‘ of undefined“
- AIOps 智能运维经验分享
- China's two meteorological "new stars" data products are shared with global users
- Aiops intelligent operation and maintenance experience sharing
- 一款支持HomeKit的摄像头?智汀 IPC摄像头IC1开箱体验
- jniLibs.srcDirs = [‘libs‘]有什么用?
- In the first half of the year, there were 7 new unicorns in this field, and the capital scrambled to enter the market
- Activity跳转到Fragment的方法(Intent)
- 在循环中动态改变标签元素的样式
猜你喜欢
Golang implements reliable delay queue based on redis

Service实战:使用Service完成一个下载任务

《被讨厌的勇气》读后感

5g short message solution

After reading the hated courage

shell脚本详解(四)——循环语句之while循环和until循环(附加例题及解析)

In the first half of the year, there were 7 new unicorns in this field, and the capital scrambled to enter the market
组合学笔记(五)分配格中的链

Redis中的布隆过滤器与布谷鸟过滤器,你了解多少?
Getting started with database connection pooling (c3p0, Druid)
随机推荐
函数的导数与微分的关系
贪心之区间问题(4)
Dynamically changing the style of label elements in a loop
std::enable_ shared_ from_ This error: error: expected template name before '<' token
How much do you know about the bloom filter and cuckoo filter in redis?
最长公共子序列
Iplook becomes RedHat (red hat) business partner
贪心之区间问题(2)
Redis中的布隆过滤器与布谷鸟过滤器,你了解多少?
Exness sorted out three problems to be solved in Musk's acquisition of Twitter
Active directory user logon Report
数商云:数字化供应链系统搭建,赋能企业实现物流供应链的优化升级
Sre is bound to move towards the era of chaotic engineering -- Huawei cloud chaotic engineering practice
Flutter系列-搭建Flutter开发环境
How to manage tasks in note taking software such as flowus and notation?
JVM quick start
Cookie encryption 3+rpc solution
集群、分布式、微服务概念和区别
session机制详解以及session的相关应用
Error in created hook: “TypeError: Cannot read property ‘tableId‘ of undefined“