Flutter setting개발환경 설정 01

2022. 1. 3. 23:25Web/Flutter

Flutter 개발 환경 셋팅을 하는 방법과 순서 그리고 셋팅중에 발생하는 에러를 한번 잡아보자 사실 하다가 에러 발생해서 애먹었던거 정리해서 올려보려고 합니다.

 

다른분들은 이런 경우 없으시길 바랍니다.

 

Window 10 64bit 윈도우 환경에서 해보겠습니다.

 

*시스템 요구 사항
Flutter를 설치하고 실행하려면 개발 환경이 다음 최소 요구 사항을 충족해야 합니다.

운영 체제 : Windows 7 SP1 이상(64비트), x86-64 기반.
디스크 공간 : 1.64GB(IDE/도구용 디스크 공간 제외).
도구 : Flutter는 환경에서 사용할 수 있는 이러한 도구에 따라 다릅니다.
Windows PowerShell 5.0 이상(Windows 10과 함께 사전 설치됨) -

https://docs.microsoft.com/en-us/powershell/scripting/windows-powershell/install/installing-windows-powershell?view=powershell-7.2
Windows 명령 프롬프트에서 Git 사용 옵션이 있는 Windows 2.x 용 Git . - 

https://git-scm.com/download/win
gitWindows용 Git이 이미 설치된 경우 명령 프롬프트 또는 PowerShell에서 명령을 실행할 수 있는지 확인하십시오 .

 

Git - Downloading Package

Download for Windows Click here to download the latest (2.34.1) 32-bit version of Git for Windows. This is the most recent maintained build. It was released about 2 months ago, on 2021-11-25. Other Git for Windows downloads Standalone Installer 32-bit Git

git-scm.com

 

Installing Windows PowerShell - PowerShell

This article explains how to install Windows PowerShell on various versions of Windows.

docs.microsoft.com

 

*개발 구성중 설치 프로그램

-Visual Studio Code (VSC)

-Visual Studio(VSC설치하는데 설치하는 이유는 Flutter에서 요구하는 Window SDk버전 관리를 편하게 하기 위해서 설치합니다. 다른 방법으로 하셔도 됩니다. 현재 작성되는 상황에서의 요구버전은 10.0.18362.0 버전입니다.)

-Adnroid Studio(안로이드 개발도구 입니다.) 

 

이미지 순차적으로 진행하시면 크게 문제만 없다면 정상적으로 설치가 됩니다.

 

설치

Setup Visual Studio code

비주얼 스튜디오 코드 다운로드 링크 입니다.

https://code.visualstudio.com/Download

 

Download Visual Studio Code - Mac, Linux, Windows

Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications.

code.visualstudio.com

다운로드 이후 크게 손델것 없이 all next로 설치를 완료합니다.

 

Setup Flutter

 

아래링크를 통해서 Flutter sdk 를 다운로드 합니다.

https://flutter.dev/?gclid=EAIaIQobChMI5IKiguKV9QIVJ8BMAh2GbQDcEAAYASAAEgLCrPD_BwE&gclsrc=aw.ds 

 

Flutter - Build apps for any screen

Flutter transforms the entire app development process. Build, test, and deploy beautiful mobile, web, desktop, and embedded apps from a single codebase.

flutter.dev

 

dowload link Flutter SDK zip

다운로드 받으면 zip파일이 받아집니다. zip 파일의 압축을 풀고 flutter Flutter SDK의 원하는 설치 위치(예: C:\Users\<your-user-name>\Documents)에 포함된 파일을 배치합니다.

저는 여기에 zip 파일을 압축을 풀어 배치했습니다.

각각 운용하기 좋은 폴더에 설치하시는것이 좋습니다.

 

Flutter bin 폴더 경로를 환경변수에 적용해줍니다.

MyPC - 마우스 우클릭 - 속성 -  고급시스템설정 - 환경변수

2부에서 계속

반응형