1. 플러터를 설치하는 도중 Android Studio쪽에 아래와 같은 오류가 발생하였다.
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.0, on macOS 12.6.3 21G419 darwin-arm64, locale ko-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[!] Android Studio (version 2022.1)
✗ Unable to find bundled Java version.
[✓] IntelliJ IDEA Community Edition (version 2022.2.1)
[✓] IntelliJ IDEA Community Edition (version 2022.2.1)
[✓] VS Code (version 1.74.2)
[✓] Connected device (2 available)
! Device emulator-5554 is offline.
! Device emulator-5556 is offline.
[✓] HTTP Host Availability
2. 여러가지를 시도해봤지만 가장 효과적인 해결법은 아래와 같다.
/Applications/Android\ Studio.app/Contents 경로로 이동하여 jre 폴더를 하나 만들고, jbr폴더에 있는 Contents폴더를 통째로 jre 폴더로 옮겨주면 오류는 해결된다.
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.0, on macOS 12.6.3 21G419 darwin-arm64, locale ko-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] IntelliJ IDEA Community Edition (version 2022.2.1)
[✓] IntelliJ IDEA Community Edition (version 2022.2.1)
[✓] VS Code (version 1.74.2)
[✓] Connected device (2 available)
! Device emulator-5554 is offline.
! Device emulator-5556 is offline.
[✓] HTTP Host Availability
3. 모두 체크가 되어 기분이 좋다.