flutter sdk가 잘 설치되어 있는지 확인하기 위해 cmd 창에 아래와 같이 입력했을 때,
flutter doctor
위와 같은 문구가 출력되었다.
[!] Android toolchain 은 라이선스 항목에 동의가 이뤄지지 않았다는 뜻이므로 동의를 진행해주기 위해
flutter doctor --android-licenses
명령어를 작성했지만 아래와 같은 에러가 떴다.
Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this.
아래와 같은 방법으로 해결 완료 !!
1. 안드로이드 스튜디오 실행 뒤 SDK Manager 실행
2. [Android SDK] 클릭 -> [SDK Tools] 하단의 Android SDK Command-line Tools(latest) 체크박스에 ✅ 체크! 설치 및 적용을 해주면 된다.
3. 설치 완료 후 명령어 재실행
flutter doctor --android-licenses
Android toolchain 관련 이슈가 사라진 것을 확인할 수 있다!!
'Frontend > Flutter' 카테고리의 다른 글
[Flutter] TextField, CupertinoTextField에 숫자만 입력되게 하기 (0) | 2024.02.21 |
---|---|
[Flutter] TextFormField를 사용하여 textfield 상태관리 하기 (2) | 2024.02.21 |
[Flutter] 앱 아이콘 변경(앱 이미지 설정) (0) | 2024.02.12 |
[Flutter] remove AppBar leading icon, AppBar에서 뒤로가기 버튼 없애기 (2) | 2024.02.12 |
[Flutter] intl 라이브러리 NumberFormat 사용법(숫자 세자리마다 콤마, 소수점 두자리, 만 단위 표시) (2) | 2024.02.05 |