close

Flutter and Android Studio and VScode Install on Windows 10 簡易安裝Flutter開發環境

System requirements

  • Operating Systems: Windows 7 SP1 or later (64-bit), x86-64 based.

  • Disk Space: 1.64 GB (does not include disk space for IDE/tools).

  • Tools:

    • Flutter depends on these tools being available in your environment.
    • Windows PowerShell 5.0 or newer (this is pre-installed with Windows 10)
    • Git for Windows 2.x, with the Use Git from the Windows Command Prompt option.

    If Git for Windows is already installed, make sure you can run git commands from the command prompt or PowerShell.


1. Check tools install and version

Search powershell

Check powershell version

Get-Host | Select-Object Version

If your version lower than 5.0 Download this PowerShell

Roll the page download this .msi and install

Successful Installed

Git Install

Git

open exe

Check successful installed PowerShell 7

git --version


2. Install Flutter SDK

Download Flutter SDK flutter_windows_2.2.3-stable

Extract the zip file and cut flutter folder to C:/dev/

add C:\dev\flutter\bin

Check Flutter SDK Successful Installed

flutter --version

You can input flutter upgrade Check newest Version

Input flutter --version Check Version has Installed newest


3.Flutter doctor

This command checks your environment and displays a report of the status of your Flutter installation.
Check the output carefully for other software you might need to install or further tasks to perform

flutter doctor

See can see detailflutter doctor -v

Chrome
Vscode

4.Java JDK

Java

%JAVA_HOME%\bin


5.Intsall Android Studio SDK

Android Studio

Ignore error We solve this problem on later

flutter doctor

flutter doctor --android-licenses

Error handler

Install Andorid SDK Command-line Tools(lastest)

flutter doctor

y

y

y

y

y

y

y

Successd

flutter doctor

See all detail

flutter doctor -v

Flutter can’t find the path from Android studio

We should set path to command.

flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"

restart cmd and input flutter doctor -v

Successful Install


5.Intsall Android Studio emulator

Handler before error by last step

Check virtualization: enable

If your virtualization disable you can go to bios to open Virtualization Technology.

If your cpu does’t support. This problem isn’t to solved.

You have virtualization enable.Then you sholud close Hyper-v on Windows function

You should cancel this function and restart your computer

Open Cmd use right click administrator

Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All

bcdedit /set hypervisorlaunchtype off

Restart your computer.

Open cmd check successed

And they we can try to install Intel@HAXM package

We first shoud delete Intel x86 Emulator Accelerator(HAXM installer)

Check the function has canceled

Download Haxm from Intel Github

Intel Haxm

Extract the zip file and Open haxm-7.7.0-setup

Successed Install HAXM


6.Install Flutter plus on Android Studio

7.Creat Flutter Project and Emulator

Project Should be use lowcase

If your emulator can’t start. You can try to reinstall Android SDK Platform-Tools


And you can use browser open flutter emulator


8.Use Vscode IDE develop Flutter

Install Flutter package

Pressd F1 flutter doctor check nothing problem

Pressd F1 create a new projectFlutter: New Project

input your project name

Successd Create Project

You can chose your emulator

arrow
arrow
    創作者介紹
    創作者 微笑創客 的頭像
    微笑創客

    微笑創客 Smile assassin

    微笑創客 發表在 痞客邦 留言(0) 人氣()