본문 바로가기

: IT/Flutter

[Mac M1] flutter doctor 에서 Android toolchain 설치 에러가 날 때. Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this.

반응형

터미널에서
1. flutter doctor 명령어 입력

2. flutter doctor --android-licenses 명령어 입력 후 아래 에러 메세지가 뜰 경우,

3. 안드로이드 설정 > SDK Manager > SDK Tools 에서 하단 Hide Obsolete Packages 옵션을 해제 후 
Android SDK Command-line Tools와 Android SDK Tools(Obsolete)를 설치한다

4. 그러면 다시 flutter doctor --android-licenses 명령어를 입력하면 설치가 진행된다

5. 라이센스 동의 문구에 동의하면 설치 완료~!

반응형

': IT > Flutter' 카테고리의 다른 글

플러터 2.0 버튼  (0) 2022.03.03
Collection and Generic  (0) 2022.03.03
Navigator.pushNamed와 routes로 페이지 이동  (0) 2022.03.01
Widget  (0) 2022.02.12
[Mac M1] Flutter SDK 설치  (0) 2022.02.06