https://docs.flutter.dev/get-started/install/windows
Windows install
How to install on Windows.
docs.flutter.dev
플러터 사이트를 들어가서 다운받는다.
1번 방법을 사용하면, Zip을 받아 풀어서 환경변수까지 설정을 해줘야한다.
또 다른 방법,
초콜라티를 이용한다.
https://chocolatey.org/install
Installing Chocolatey
Chocolatey is software management automation for Windows that wraps installers, executables, zips, and scripts into compiled packages. Chocolatey integrates w/SCCM, Puppet, Chef, etc. Chocolatey is trusted by businesses to manage software deployments.
chocolatey.org
Node.js 처럼 패키지다운로드를 도와주는 기술이다.
초콜라티는 윈도우상에서 다운로드를 지원해주니 윈도우 환경인분만 쓰시길 바란다.
Chocolatey 다운받는법은 위의 공식문서에서 아주 잘 설명이 되어있다.
2. 플러터 설치
초콜라티를 사용해 플러터를 설치한다.
관리자 터미널에서 choco install flutter 명령을친다.
3. 안드로이드 설치
안드로이드 설치는 여기서한다.
https://developer.android.com/studio
Download Android Studio & App Tools - Android Developers
Android Studio provides app builders with an integrated development environment (IDE) optimized for Android apps. Download Android Studio today.
developer.android.com
안드로이드는 Java8 버전 이상 설치가 되어있어야한다.
4. 플러터 연동
관리자 터미널에서 다시 들어가
flutter doctor --android-licenses 명령을친다.
Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this.
이런 에러가 뜬다면, cmdline-tools 를 확인해야한다.
경로는, 프로젝트생성한뒤 Tools - SDK Manager - Sysyem settings - Android SDK -SDK Tools
이곳에서 안드로이드 SDK Command-lines tools 를 설치가되어있는지 확인하자.
만약 플러터를설치하다 다음과같은 2개의 이슈가 생겨났을때의 해결방법이다.
Windows Version이 안맞는다.
flutter channel master , flutter upgrade
명령을 쳐주면 해결이된다.
Visual Studio Error
=> 컴퓨터에서 Visual Studio Installer를 검색해서 들어간다.
수정 클릭
최신 Windows SDK를 받아준다.
이슈가 없으면 완벽하다!