I have Android Studio version 3.0. When i use the command "flutter doctor" it shows me that "Unable to find bundled Java version". My current java version is (build 1.8.0_131-b11).
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:
JetBrains Toolbox
change username to your macOS username
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
1.4m articles
1.4m replys
5 comments
56.9k users