사용하지않는공간/Flutter

[Flutter] 플러터 3.0 + VisualStudio2022 설치시 Bad UTF-8 에러 해결

반나무 2022. 5. 19. 19:16

안녕하세요, 반나무입니다.

 

플러터 3.0을 설치하고 flutter doctor 명령어를 실행하면 Visual Studio Bad UTF-8 endcoding 에러가 나는데

visual 2019에서는 보이지 않던 문제여서 여기저기 검색해봤습니다.

 

 

[windows] Exception: Bad UTF-8 encoding when running flutter doctor or building/running for Windows · Issue #102451 · 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 Log...

github.com

위 github issue에서 같은 문제를 찾았고 해결 방법까지 찾았습니다.

 

 

 

해결 방법

 

Releases · microsoft/vswhere

Locate Visual Studio 2017 and newer installations. Contribute to microsoft/vswhere development by creating an account on GitHub.

github.com

 지금 문제는 VisualStudio 2022에서 지역에 따른 인코딩문제며, 위 글에서 파일을 다운받아 

C:\Program Files (x86)\Microsoft Visual Studio\Installer

경로에 다운받은 파일을 붙여넣어줍니다.

 

그러면 아래처럼 flutter doctor 통과!

반응형