Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build Flutter Development Environment under Windows

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to build Flutter development environment under Windows, which is very detailed and has certain reference value. Friends who are interested must finish reading it.

The system requirements document the system requirements:

Operating system Windows 7 SP1 or later (64-bit), x86-64 based.

Disk space above 1.64G (excluding tools and IDE)

Tools:

Windows PowerShell 5.0 or later, (included with windows10)

For git windows version 2.x or above, make sure that environment variables are configured and can be called in powershell, as shown below:

Download and install

List of all versions: https://flutter.dev/docs/development/tools/sdk/releases

Here I chose the latest stable version 2.5.3.

After downloading, unzip it to the place where you want to install it, and I unzip it to disk D.

Add flutter/bin to the environment variable and restart the computer.

Run the command to verify that the installation is successful if the following figure can be located to the flutter directory.

Run flutter doctor to automatically detect the environment installed on your computer, and after testing, you will output a report, and the software or tools you need to install will be displayed in bold font.

Install Android Studio

Download from the official website, install next all the way, and open Setting- > sdk after startup to manage the version of sdk and tools. Flutter doctor will tell you which sdk and tools you need to install, and then check with flutter doctor after installation. To create a new Flutter project with Android Studio, you need to install the Flutter and Dart plug-ins first, and then install Setting- > plugin.

Success

After some twists and turns, when doctor was tested again, there was no problem.

Resource problem

Some dependencies are not easy to download, you can switch in the project, or you can change the sdk installation directory globally, as shown in the figure below, you can add the address of Aliyun.

Buildscript {repositories {maven {url 'https://maven.aliyun.com/repository/public'} maven {url' https://maven.aliyun.com/repository/google'} maven {url 'https://maven.aliyun.com/repository/gradle-plugin'} mavenLocal () mavenCentral () google () mavenCentral () } dependencies {classpath 'com.android.tools.build:gradle:4.1.0'}} android {compileOptions {sourceCompatibility 1.8 targetCompatibility 1.8}} these are all the contents of the article "how to build a Flutter Development Environment under Windows" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report