0. 작업 환경

 

Flutter 3.16.2

Dart 

 

 

 

 

 

1. 문제 상황

 

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

 

 

 

 

 

 

2. 문제 원인

 

안드로이드 설정이 덜 되었습니다. 안드로이드쪽에서 작업을 더 진행해줍니다.

 

 

 

 

 

3. 해결 방법

 

 - 설치된 안드로이드 스튜디오를 실행합니다. 설치가 안되어있다면 설치를 해줍니다.

 

안드로이드 스튜디오 실행 후 More Actions를 클릭한 후 SDK Manager를 클릭합니다.

좌측 상단에 "Android Studio -> Settings"로도 이동할 수 있습니다.

 

 

 

 

 

 

 

 

 

이후

Appearance & Behavior -> System Settings -> Android SDK로 이동

또는

Android SDK 검색 후 메뉴 진입

 

 

아래 4개 체크된 항목을 선택해줍니다. (Mac 기준으로 아래와 같이 진행, Windows인 경우 아래 항목도 체크한 후 OK를 누릅니다.)

Intel x86 Emulator Accelerator (HAXM installer)

 

이후 OK를 계속 누르며 설치를 마무리하고 Finish를 해줍니다.

 

 

 

 

 

4. 해결 방법 2

 

아직 아래 문제가 남았습니다.

Android Licenses 이슈를 해소해야합니다.

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

 

 - 해결방법

flutter doctor --android-licenses

 

위 커맨드 입력 후 계속해서 y와 Enter를 클릭해 동의를 진행합니다.

 

 

 

 

 

5. 해결 완료

 

% flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.2, on macOS 13.0.1 22A400 darwin-arm64, locale ko-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.3)
[✓] VS Code (version 1.70.1)
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!

 

 

 

 

 

 

+ Recent posts