Flutter doctor란?
Flutter개발 환경이 제대로 셋팅 되어있는지 확인하는 명령어

1. 명령 프롬프트 에서 Flutter doctor 작성후 엔터

2. 문제들이 나왔다 하나씩 해결해보자.
2-1. cmdline-tools component is missing

2-1-1. SDK Manager 선택

2-1-2. Android SDK Connand-line Tools가 설치 되어있는지 확인후 다운로드(난 다운이 안되어있었다.)

2-1-3. 명령 프롬프트 에서 Flutter doctor 작성후 엔터클릭후 다시 확인
오류는 사라졌지만 라이센스를 획득하지 않았다고 나온다.

2-1-4. 명령 프롬프트 에서 flutter doctor --android-licenses 작성후 엔터 그리고 물어보는말에 Y치고 엔터 누르면 된다.

2-1-5. 명령 프롬프트 에서 Flutter doctor 작성후 엔터클릭후 다시 확인
cmdline-tools component is missing 문제점은 클리어.
2-2. Visual Studio not installed
Visual Studio Tools 다운로드 - Windows, Mac, Linux용 무료 설치 (microsoft.com)
Visual Studio Tools 다운로드 - Windows, Mac, Linux용 무료 설치
Visual Studio IDE 또는 VS Code를 무료로 다운로드하세요. Windows 또는 Mac에서 Visual Studio Professional 또는 Enterprise Edition을 사용해 보세요.
visualstudio.microsoft.com

2-2-1 Visual Studio 를 안깔고 code만 깔았다 나는 멍청이다. 무료 다운로드 버튼을 클릭하여 다운받는다.

2-2-2. c++를 사용한 데스크톱개발 설치(오래걸림)

2-2-3. Flutter doctor 작성후 엔터는 이상한 오류가 나왔다 이게뭐람
[☠] Visual Studio - develop for Windows (the doctor check crashed)
[windows] Exception: Bad UTF-8 encoding when running flutter doctor · Issue #102451 · flutter/flutter
Steps to Reproduce Set your windows locale to german Install the Visual Studio 2022 Build Tools Install the latest flutter beta (beta, 2.13.0-0.2.pre) Run flutter doctor Temporary solution Logs Log...
github.com
찾아보니 언어쪽 문제인거같다. 영어만 오류없는 더러운 세상
https://github.com/microsoft/vswhere/releases
Releases · microsoft/vswhere
Locate Visual Studio 2017 and newer installations. Contribute to microsoft/vswhere development by creating an account on GitHub.
github.com
에서 vswhere.exe를 다운받고 C:\Program Files (x86)\Microsoft Visual Studio\Installer 에 덮어 씌우면 된다.

2-2-3. Flutter doctor 작성후 엔터 아직 문제가 있다.

2-2-4.알아보니 내가 오류찾겠다고 너무 들쑤셔놔서 나온 오류다. Visual Studio 삭제후 다시 설치했다.
이제끝!!
'Flutter > 환경설정' 카테고리의 다른 글
Android Studio, Visual Studio Code, 에뮬레이터 설치하기 (0) | 2022.05.13 |
---|---|
flutter(플러터) 설치와 환경변수 설정하기 (0) | 2022.05.13 |