본문 바로가기
[IT] Android

[Flutter 설치] Flutter Doctor Issue - Windows 윈도우 OS

by 오리엔탈킴 2022. 6. 13.

안녕하세요, Windows OS에 Flutter를 설치한 후 개발 환경 체크를 위해 Flutter Doctor를 수행을 하였는데, 아래와 같이 2개의 에러가 발생하였습니다. 2개 이슈 모두 다소 황당한 이슈이자 별거 아닌 해결방법이지만 혹시 같은 에러 보신 분들을 위해 간략히 정리합니다.

 

Visual Studio Encoding 이슈

Visual Studio - develop for Windows (the doctor check crashed)
    x Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know
      about this issue at https://github.com/flutter/flutter/issues.
    x Exception: Bad UTF-8 encoding (U+FFFD; REPLACEMENT CHARACTER) found while decoding string:
........

위와 같이 Visual Studio UTF-8 Encoding 이슈가 발생하였고, 아무리 검색을 해봐도 해결방법을 못 찾고 포기를 하고 있었는데..다소 간단하게 이슈가 해결되었습니다;;

혹시나 하여 공식 페이지 방문해보니, Flutter Windows 3.0.2 버전(flutter_windows_3.0.2)이 출시되었길래 신규 버전을 다시 다운로드하고 환경변수 수정 후 다시 실행하니 이슈가 사라졌습니다^^;; 기존 버전에 버그가 있었거나 제 다른 환경과 충돌이 있었나 봅니다..

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

 

Windows install

How to install on Windows.

docs.flutter.dev

 

Android Studio : unable to determine bundled java version 이슈

이 것도 Windows에서의 해결 방법은 찾지는 못했는데, 이 이슈도 제 실수로 발생한 것이었고 매우 간단히 해결이 되었습니다.

Android Studio (version 3.6) 
    x unable to determine bundled java version.
Android Studio (version 2021.2)

위와 같이 Android Studio 다른 버전이 뜨는 것을 확인할 수 있었는데.. 새 버전 (2021.2)을 사용하기 전까지 사용하던 구 버전 (3.6) Android Studio를 폴더까지 완벽하게 삭제하지 않아서 발생한 다소 황당한 에러였습니다. 구 버전의 폴더를 찾아 완벽히 삭제를 하니 이슈가 해결되었습니다 ^^;;

 

두 개의 이슈를 해결하고 다시 실행을 하니 모든 환경이 완료가 되었네요.. 다른 포스트에서 전체 Flutter 환경 세팅하는 방법도 정리해보겠습니다. 이제 환경 구성은 완료했으니 Fultter를 하나하나 배워나가도록 해야겠네요~

 

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.0.2, on Microsoft Windows [Version 10.0.19044.1706], locale ko-KR)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.1)
[√] Android Studio (version 2021.2)
[√] IntelliJ IDEA Community Edition (version 2021.2)
[√] Connected device (3 available)
[√] HTTP Host Availability

• No issues found!

 

반응형

댓글