Flutter 환경 구축(Windows 10) 그 2

3168 단어 Flutter

마지막 시간까지의 습관



Flutter의 환경 구축을했습니다 ...하지만 뭔가 이상하다고 깨달았습니다.

현재 상태 파악



Plugns에 Dart가 설치됨으로 표시되지만,
Config 화면에서 설정할 수있는 Dart가 존재하지 않습니다.



New Project에서 Dart를 선택할 수 없다는 것을 알았습니다.



문제점 조사



오류 메시지는 "Erorr path to the Dart SDK is not secified"입니다.
이번에 검색해 보면 다음 사이트가있었습니다.
htps : // f ぅ라고 r이 r네 r. 이 m / f는 rsdk-s-t-fu-on-d-e-pe-speshifue de-d-kachion-in-an droi ds two /

빈 프로젝트를 만들고 설정 항목을 살펴보면
Flutter & Dart 품목이 있었습니다



Path 설정은 Flutter 및 Dart가 설치된 곳입니다.
Flutter는 설치한 위치에 문제가 없습니다.
(예: C:\flutter\)
Version 부분에 Flutter 버전이 표시되면 성공합니다.

Dart는 cache\dart-sdk로 설정합니다.
(예: C:\flutter\bin\cache\dart-sdk )

이것으로 문제없이 작동한다고 생각합니다.

... 사실 문제점을 조사하기 전에 한 일



Flutter doctor를 사용해 보면 다음 오류가 발생했습니다.
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel dev, 2.6.0-0.0.pre, on Microsoft Windows [Version 10.0.19042.1165], locale ja-JP)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2020.3)
[√] Connected device (4 available)

! Doctor found issues in 1 category.

어라 Visual Studio는 지난번에 나왔나요?
직접적인 원인은 아닌 것 같지만 해결해 둡니다.

다운로드 대상 링크
h tps:///ゔぃすあ lsつぢ오. 미 c 로소 ft. 코 m / 그럼 / vs / 딱딱하게 ty /

워크로드 검사는 C++로 데스크톱 개발을 선택합니다.
설치 후 Flutter doctor에서 확인하면 다음과 같습니다.
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel dev, 2.6.0-0.0.pre, on Microsoft Windows [Version 10.0.19042.1165], locale ja-JP)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.2)
[√] Android Studio (version 2020.3)
[√] Connected device (4 available)

• No issues found!

오류 메시지가 사라졌지만 여전히 상황이 변하지 않습니다.
Visual Studio 설치로 해결할 수 없습니다 ...

좋은 웹페이지 즐겨찾기