본문 바로가기

Flutter

윈도OS에서 Flutter 시작하기.

반응형

https://docs.flutter.dev/get-started/install/windows

 

flutter를 설치하려면 Windows 10 이상의 64비트 운영체계가 필요합니다.

 

1. Flutter SDK 설치.

 

https://docs.flutter.dev/development/tools/sdk/releases

 

설치 가이드를 따라 하려면 위 SDK페이지에서 최신 버전 플러터를 다운로드하여 압축을 풀고 그 디렉터리를 path 환경 변수에 추가하는 등 여러 가지 작업을 해야 합니다.

 

번거롭죠???

 

위 작업은 chocolatey를 사용하면 편하게 할 수 있습니다.

 

https://chocolatey.org/install#individual

 

관리자 권한으로 파워쉘을 실행한 후 아래 명령어로 chocolatey를 설치합니다.

 

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

 

chocolatey가 설치되면 파워쉘에서 다음 명령어를 실행해서 flutter를 설치합니다.

 

choco install flutter

 

그러면 flutter sdk를 다운로드하고, 압축 풀고, 경로 설정까지 한 번에 다 해줍니다.

설치 경로는 C:\\tools\flutter 입니다.

 

 

2. Android Studio

 

필요한 경우 안드로이드 스튜디오를 설치합니다.

 

https://developer.android.com/studio

 

그리고 나머지 설치 가이드를 따라 하면 됩니다.

 

android studio, 시뮬레이터 관련 내용은 자주 변경돼서 공식 문서를 활용하는 게 더 좋습니다. ^^

 

 

3. Windows setup

 

Flutter로 윈도용 프로그램을 빌드하려면 C++ 개발 환경이 설치되어 있어야 합니다.

 

Visual Studio가 설치되어 있으면 이 과정은 필요 없습니다. 

 

Visual Studio가 없으면 이것을 설치할 필요는 없고 C++ 개발 환경만 설치하면 됩니다.

 

https://visualstudio.microsoft.com/ko/downloads/#build-tools-for-visual-studio-2022

 

Visual Studio 다운로드 페이지에서 Visual Studio 2022용 빌드 도구를 설치하고 실행 한 후 "Desktop development with C++"을 설치하면 됩니다.

 

이 것 설치하는데 시간이 제일 많이 걸리네요!!

 

 

4. flutter doctor

마지막으로 flutter doctor로 개발환경을 점검했을 때 모두 통과가 되면 됩니다.

반응형