• 카테고리

    질문 & 답변
  • 세부 분야

    모바일 앱 개발

  • 해결 여부

    해결됨

flutter doctor 실행시 Android toolchain 오류

22.11.09 11:15 작성 조회수 446

0

- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요!
- 먼저 유사한 질문이 있었는지 검색해보세요.
- 서로 예의를 지키며 존중하는 문화를 만들어가요.
- 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)

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


flutter doctor --android-licenses

ERROR: JAVA_HOME is set to an invalid directory: /Library/Java/JavaVirtualMachines/1.8.0_202.jdk/Contents/Homeexport

Please set the JAVA_HOME variable in your environment to match the

location of your Java installation.


이것은 어떻게 해결해야 하나요?

답변 1

답변을 작성해보세요.

0

flutter doctor --android-licenses 실행하시고 전부 수락하시면 됩니다

환경변수는 링크 참고하셔서 등록해 주시면 됩니다. 혹시 Java 11 이 필요할 수도 있습니다.

https://stackoverflow.com/questions/64917779/wrong-java-home-after-upgrade-to-macos-big-sur-v11-0-1