See this run of flutter doctor -v
I am on a Mac with M1 Pro.
<code>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 unknown, 2.0.6, on macOS 14.5 23F79 darwin-arm, locale it-IT)
• Flutter version 2.0.6 at /Users/mirkotebaldi/development/flutter
• Framework revision 1d9032c7e1 (3 years, 2 months ago), 2021-04-29 17:37:58 -0700
• Engine revision 05e680e202
• Dart version 2.12.3
⣽The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/mirkotebaldi/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /opt/homebrew/opt/openjdk@17/bin/java
• Java version OpenJDK Runtime Environment Homebrew (build 17.0.11+0)
• All Android licenses accepted.
</code>
<code>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 unknown, 2.0.6, on macOS 14.5 23F79 darwin-arm, locale it-IT)
• Flutter version 2.0.6 at /Users/mirkotebaldi/development/flutter
• Framework revision 1d9032c7e1 (3 years, 2 months ago), 2021-04-29 17:37:58 -0700
• Engine revision 05e680e202
• Dart version 2.12.3
⣽The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/mirkotebaldi/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /opt/homebrew/opt/openjdk@17/bin/java
• Java version OpenJDK Runtime Environment Homebrew (build 17.0.11+0)
• All Android licenses accepted.
</code>
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 unknown, 2.0.6, on macOS 14.5 23F79 darwin-arm, locale it-IT)
• Flutter version 2.0.6 at /Users/mirkotebaldi/development/flutter
• Framework revision 1d9032c7e1 (3 years, 2 months ago), 2021-04-29 17:37:58 -0700
• Engine revision 05e680e202
• Dart version 2.12.3
⣽The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/mirkotebaldi/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /opt/homebrew/opt/openjdk@17/bin/java
• Java version OpenJDK Runtime Environment Homebrew (build 17.0.11+0)
• All Android licenses accepted.
What is happening !?
I installed java 17 because I’m mantaining an old flutter 2.0.x app
I installed java openjdk@17 using brew
How can I fix actual flutter doctor report?
I mean: focus on
The operation couldn’t be completed. Unable to locate a Java Runtime.