I have Android Studio version 3.0
When I use the command flutter doctor
it shows me the following,
Unable to find bundled Java version
My current Java version is (build 1.8.0_131-b11)
Requirements to create Flutter projectJava 11 JDK installed and set in system environment variables. Flutter and Dart extension installed. Connected Device with laptop for run and test flutter applications.
Go to File > Project Structure. Select the SDK Location section in the list of the left. Deselect the Use embedded JDK (recommended) option. Enter the absolute path of your installed JDK in the text box.
flutter - Android Gradle plugin requires Java 11 to run.
For Mac User
Set Java_Home path using below article & then after applying below command
https://mkyong.com/java/how-to-set-java_home-environment-variable-on-mac-os-x/#what-is-usrlibexecjava-home
after that type below command on terminal
cd /Applications/Android\ Studio.app/Contents/jre ln -s ../jre jdk ln -s "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" jdk flutter doctor -v
Edit #1:
For Mac users who are using JetBrains Toolbox
, here is the solution:
Set Java_Home path using below article & then after applying below command
https://mkyong.com/java/how-to-set-java_home-environment-variable-on-mac-os-x/#what-is-usrlibexecjava-home
after that type below command on terminal
change username
to your macOS username
cd /Users/username/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7583922/Android Studio.app/Contents/jre ln -s ../jre jdk ln -s "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" jdk flutter doctor -v
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With