Skip to content

Unable to find bundled Java version #118502

@nguyendviet

Description

@nguyendviet

Steps to Reproduce

flutter doctor -v
[!] 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
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

My specs:

Macbook Apple M1
MacOS 13.1 (22C65)
Android Studio Electric Eel | 2022.1.1
java 11.0.16.1 2022-08-18 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.16.1+1-LTS-1)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.16.1+1-LTS-1, mixed mode)

This is my .zshrc:

export PATH="$PATH:$HOME/flutter/bin"
export JAVA11_HOME=$(/usr/libexec/java_home -v11.0)
export JAVA_HOME=$JAVA11_HOME

I've tried:

This is similar to these tickets but it's not resolved:

Metadata

Metadata

Assignees

No one assigned

    Labels

    customer: crowdAffects or could affect many people, though not necessarily a specific customer.r: fixedIssue is closed as already fixed in a newer versiont: flutter doctorProblem related to the "flutter doctor" tooltoolAffects the "flutter" command-line tool. See also t: labels.workaround availableThere is a workaround available to overcome the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions