flutter doctor –android-licenses 오류 해결 방법

flutter doctor –android-licenses 오류 해결 방법

증상

$ flutter doctor –android-licenses

WARNING: The SDK Manager CLI tool (sdkmanager) is deprecated. Android CLI will be used instead.

The ‘android’ binary can also be found in the cmdline-tools directory, and ‘android sdk’ is the replacementfor ‘sdkmanager’. To learn more about the Android CLI and how to use it, see the documentation

Warning: The –licenses option is no longer needed.

해결책

출처 : 깃허브

출처 : 깃허브

출처 : 깃허브

골든벨

1. Android Studio를 열어줍니다.

1. Android Studio 실행

2. More Actions → SDK Manger

(사진이 곧 내용이다)

2. 23버전을 22버전으로 바꿔서 적용시켜줍니다.

Android SDK → SDK Tool → show pack~(체크)

→ android SDK Commend-line Tools (23 →22)

→ Apply

다운로드(적용)후 “finish”

다시 Git bash로 들어와서 “flutter doctor –android-licenses” 확인

flutter doctor –android-licenses

이렇게 뜨면 정상적으로 된거

y/n 뜨면

y엔터 y엔터…(한 4번정도 해야됨)

다시 마지막 검토! Git bash 에서 “flutter doctor”

이럼 된거임..

만족

네이버 블로그 원문 보기