ARCHIVES

태그

신고하기

상단 메뉴 페이지

기본 콘텐츠로 건너뛰기

[Flutter] 안드로이드 스튜디오 업데이트, xcode 업데이트 이후 문제점 수정

업무로 인해 한동안 플루터를 못하다가, 다시 실행 하려고 하니 문제가 발생한다. 

이를 해결 해보자.


기존 설치 : https://jhchooo.blogspot.com/2020/10/flutter-1.html


검증

$ flutter doctor


문제점 1

X Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.


flutter doctor --android-licenses 에러가 나오고 있다.

flutter doctor --android-licenses

해결방법 "Andorid SDK Command-line Tools"를 설치한다.


안드로이드 스튜디오 재설치를 해서 해당 기능이 없었던듯.


문제점 2. 설치된 자바를 찾지 못하는 문제

[!] Android Studio (version 2021.1)

    Unable to find bundled Java version.

아래의 명령어를 순차적으로 진행 합니다.

$ cd /Applications/Android\ Studio.app/Contents/jre

$ ln -s ../jre jdk

Flutter 내부 코드에서 설정한 Java Path 와
안드로이드 스튜디오의 Java Path를 동일하게 만들어 주어야 한다.


완료.



댓글