본문 바로가기

정보/it관련 정보

Mac M1 Flutter Unable to find bundled Java version

728x90
반응형

목차

    Unable to find bundled Java version

     

    Intel Mac 에서 저는 M1 Mac 최근 마이그레이션을 통해 노트북을 바꿨습니다. 물론 기존 인텔 맥에서 마이그레이션 직전 플러터 상태를 체크해 보고자 아래와 같은 명령어를 실행 후 마이그레이션을 했습니다. 물론 No issues found!

     

     flutter doctor -v

     

    하지만 문제는 마이그레이션 이후 발생 했습니다. 안드로이드 스튜디오를 M1용으로 설치하기 전에는 이슈가 없었지만 M1용으로 업데이트를 하고 난 후 갑자기

     

    Unable to find bundled Java version 에러 발생 이게 무슨일인가 열심히 찾아보았더니 해결책이 나왔습니다.

     

    우선 터미널을 실행합니다.

     

    Android Studio  Electric Eel 이전 버전

     

    cd /Applications/Android\ Studio.app/Contents/jre
    ln -s ../jre jdk
    ln -s "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" jdk

     

    Android Studio Electric Eel 이전 버전.txt
    0.00MB

     

    위 명령어를 차례로 입력하면 오류가 해결 됩니다. 하지만 저는 이 실행으로는 해결이 되지 않았습니다. 그래서 해결책이 없는걸까?

    막막함이 밀려오던 때 다른 방법을 찾게 되었습니다.

     

    복사가 되지 않을 경우 위 파일을 다운로드 받으셔서 사용하세요.

     

    Android Studio  Electric Eel 버전 (기타 카나리아 및 프리뷰 릴리스 문제)

     

    안드로이드 설치 폴더의 번들 디렉토리 이름이 jbr이기 때문에 문제가 발생한 변경이 필요했습니다.

     

    cd /Applications/Android\ Studio.app/Contents
    ln -s jbr jre

     

    Android Studio Electric Eel 버전.txt
    0.00MB

     

    복사가 되지 않을 경우 위 파일을 다운로드 받으셔서 사용하세요.

     

    제가 지금은 개발을 잠시 중단한 상태지만 미리 적용하지 않고 있다가 개발하려면 이런 저런 문제들을 해결하느라 개발도 못할 것 같아 주기적으로 이런 상황들을 대비하고 있습니다. 

    [✓] Flutter (Channel dev, 2.11.0-0.1.pre, on macOS 13.2.1 22D68 darwin-arm,
        locale ko-KR)
        • Flutter version 2.11.0-0.1.pre at /Users/mac/development/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision b101bfe32f (1년, 1달 전), 2022-02-16 07:36:54 -0800
        • Engine revision e355993572
        • Dart version 2.17.0 (build 2.17.0-69.2.beta)
        • DevTools version 2.10.0-dev.1
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
        • Android SDK at /Users/mac/Library/Android/sdk
        • Platform android-30, build-tools 30.0.1
        • Java binary at: /Applications/Android
          Studio.app/Contents/jre/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build
          11.0.15+0-b2043.56-8887301)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 14.2)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • CocoaPods version 1.10.2
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 2022.1)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • Java version OpenJDK Runtime Environment (build
          11.0.15+0-b2043.56-8887301)
    
    [✓] VS Code (version 1.74.3)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.46.0
    
    [✓] Connected device (1 available)
        • Chrome (web) • chrome • web-javascript • Google Chrome 111.0.5563.64
        ! Error: ooo의 iPhone is not connected. Xcode will continue when 000의 iPhone
          is connected and unlocked. (code -13)
    
    [✓] HTTP Host Availability
        • All required HTTP hosts are available
    
    • No issues found!

    정상적으로 작동하고 있는 것을 확인 할 수 있습니다.

    728x90
    반응형
    사업자 정보 표시
    페인트디자인칠 | 지연수 | 강원도 춘천시 학곡동 1길 | 사업자 등록번호 : 185-32-00016 | TEL : 010-5904-3354 | Mail : marine0321@naver.com | 통신판매신고번호 : 호 | 사이버몰의 이용약관 바로가기

    Instagram



    맨위로