Windows platform under Flutter installation, configuration, first run.

Source: Internet
Author: User
Tags git clone

What is flutter? He is Google based on the dark language open source cross-platform development dependency. As with the fire reactive native, a set of code can implement two different platform apps. So why introduce flutter instead of reactive Native in the domestic fire. Specifically, you can look at this article. I'm not here to explain more. Previously flutter only supported Mac Os,linux systems. Fortunately, the launch of the Windows platform, can be said to be very nice, reducing the cost of learning so cross-platform. Of course, you can also look directly at Flutter's official address to view tutorials.

First step: Install Git

You need to install Git as a download tool for the Flutter SDK. Here I recommend to Baidu Software Center download, the official website of a slow horse. After downloading the installation is ready.

Step two: Download the flutter SDK

Windows desktop Right click on git base here. Of course you can also select a folder to open the Git Command Line window and enter the following command to download the flutter SDK.

git clone-b alpha https://github.com/flutter/flutter.git

Note: The flutter download path must be in English and the path cannot have spaces! Flutter download path to all English and the path must not have spaces! Flutter download path to all English and the path must not have spaces!

Step Three: Configure environment variables.

You need to add the path to the flutter in the Windows environment variable path. The path points to the bin path to the flutter file, such as:

Fourth Step: Install

Open PowerShell (Administrator) and enter the following directives:

Flutter Doctor

Flutter will automatically configure the installation. Of course you can also work on Git. The prerequisite is to operate under the Bin folder of the Flutter directory. Once successful, you will see the following interface:

If there are some items that show ' X '. Then you need to install it and enter it again:

He will automatically install the corresponding dependencies.

The fifth step is to develop the software.

You need to install Android Studio and the Android SDK before you need to reload it. In addition to the times, flutter development is temporarily unsupported in Android studio and can only be used by the same company's product IntelliJ. Need you to download one, IntelliJ free version features less, download the time to pay attention to download the professional version, the online hack tutorial here itself Baidu, no more say. After the download is complete, select plugins in setting such as:

Search: Flutter and dark installation. Of course you also want to download the dark SDK recommended to download the installation version, he will help you configure.

Sixth step: Restart the computer.

Seventh step: Create your Flutter project.

Interllij creates a flutter project, if you often use the simulator in debugging, similar to Genymotion. He will report the following error, resulting in the interface blank can not be rendered.

E/flutter (13181): [error:flutter/shell/gpu/gpu_surface_gl.cc] Failed to setup Skia Gr context.

I recommend you or the real machine debugging, after successful is the following interface:

Start your flutter learning journey now!

Windows platform under Flutter installation, configuration, first run.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.