[flutter doctor] android toolchain -develop android sdk error

이안쿠·2023년 6월 28일
0

오류 메세지

목록 보기
3/3

#flutter doctor 셋팅 오류

flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.10.5, on Microsoft Windows [Version 10.0.19045.3086], locale ko-KR)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    X cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
[!] Visual Studio - develop for Windows (Visual Studio Community 2022 17.5.3)
    X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop
      development with C++" workload, and include these components:
        MSVC v142 - VS 2019 C++ x64/x86 build tools
         - If there are multiple build tool versions available, install the latest
        C++ CMake tools for Windows
        Windows 10 SDK
[√] Android Studio (version 2022.2)
[√] VS Code (version 1.78.0)
[√] VS Code (version 1.72.0-insider)
[√] Connected device (3 available)
[√] Network resources코드를 입력하세요

#해결 (1)
Android SDK Command-line Tools (latest) 설치

#해결 (2)

JAVA_HOME bin error

(기존) 시스템 환경변수
JAVA_HOME C:\Program Files\Java\jdk-17\bin

(변경) 시스템 환경변수 수정
JAVA_HOME C:\Program Files\Java\jdk-17

 >flutter doctor --android-licenses

설정 yes

#해결 (3)

Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop
      development with C++" workload, and include these components:
        MSVC v142 - VS 2019 C++ x64/x86 build tools
         - If there are multiple build tool versions available, install the latest
        C++ CMake tools for Windows
        Windows 10 SDK

visual studio community 2022

profile
한 줄로 표현하기 어려운 자유로운 영혼.

0개의 댓글