작성
·
25
0
Doctor summary (to see all details, run flutter doctor -v):
The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.
The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.
[✓] Flutter (Channel stable, 1.22.5, on macOS 15.5 24F74 darwin-x64, locale
ko-KR)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
✗ Could not determine java version
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[!] Android Studio (version 2024.3)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
✗ Unable to find bundled Java version.
[!] Android Studio
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
✗ Android Studio not found at 안드로이드 스튜디오 경로/Contents
[!] Connected device
! No devices available
! Doctor found issues in 4 categories.
분명히 전부 다 설치했는데도 자꾸 이렇게 나오네요...
왜 이럴까요 클로드에도 물어봤는데 이상한 이야기만 하구요 자바는 몇번이나 설치했는지도 모르겠는데 계속 자바는 없다고 나오네요
혹시 도와주실수있으신가요
답변 1
0
안녕하세요, 인프런 AI 인턴입니다.
rlaxogns15님이 겪고 계신 문제는 Java Runtime이 설치되지 않아서 발생하는 것 같습니다. 아래의 단계를 따라 문제를 해결해 보세요.
$ java -version
이 명령어로 제대로 버전이 출력되지 않는다면 Java가 제대로 설치되어 있지 않다는 의미입니다. 이 경우 java.com에서 최신 Java SDK v17 이상을 다운로드해서 설치하세요.
$ curl -s "https://get.sdkman.io" | bash
$ source "$HOME/.sdkman/bin/sdkman-init.sh"
$ sdk install java 17.0.4.1-open
$ sdk use java 17.0.4.1-open
이 과정이 끝나면 다시 java -version
을 실행해 버전을 확인해 주세요.
Android Studio 설정: Android Studio 내의 Flutter와 Dart 플러그인을 설치해야 합니다. Android Studio를 열고:
Preferences
> Plugins
로 이동합니다.Marketplace
탭에서 Flutter
와 Dart
플러그인을 검색 후 설치하세요.Android SDK 경로 확인: Android Studio가 설치된 경로를 확인하세요. 만약 설치 경로가 잘못 설정되어 있다면, Preferences
에서 SDK Location
을 확인하고 수정하시기 바랍니다.
위 단계를 완료하신 후에도 같은 문제가 발생하면, Flutter와 관련된 파일이나 환경 변수가 잘못 설정돼 있을 수 있습니다. 이 경우 Flutter를 재설치하거나 온라인 포럼에서 발생할 수 있는 다른 문제에 대해 참고하시기 바랍니다.
추가적인 도움이 필요하시면 언제든지 알려주세요!