Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter Doctor - Unable to determine bundled Java version

I actually didn't want to install Android Studio to use flutter, so i just installed the Android SDK Command Line Tools.

The thing is, when i run flutter doctor i get the following warning.

Running flutter doctor

And when i create a new project i get this one.

enter image description here

I am able to create and compile flutter projects without any issues, it is only the warning that worries me. Could it cause dependency trouble in the future for java related packages?

like image 202
Bata Avatar asked Dec 13 '22 09:12

Bata


1 Answers

Execute these commands one by one and it resolved my issue in MAC .

cd /Applications/Android\ Studio.app/Contents/jre

ln -s ../jre jdk

ln -s "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin" jdk

like image 70
Sateesh Pasala Avatar answered Dec 21 '22 10:12

Sateesh Pasala