MOB/Flutter

[Flutter 초기 환경 세팅] Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this

달별선장 2023. 8. 24. 17:37
728x90

Error : Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this

 

Flutter SDK 를 설치하고 경로를 지정해주었는데도 에러가 발생할 때가 있다.

경로를 Android SDK 경로 (맥 기준 : Users/사용자명/Library/Android/sdk) 로 잡아주었는데도 안 된다.

Flutter docter 를 실행 했을 때,

 

    ✗ 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.

 

위와 같은 결과가 출력된다.

 

 

해결 방법은 아래와 같다.

 

Android Studio > Setting > Android SDK (검색하여 들어가기) > SDK Tools 탭 > 설치 항목은 아래 이미지 참고

 

이후, 폰을 연결하고 실행하면 Flutter 의 첫화면이 뜬다!

 

 

(m1 유저는 애뮬이 안된다. 꼭 폰으로 테스트..)

728x90