Skip to content
Advertisement

Flutter 2: Unable to determine bundled Java version

I am using Android Studio under Windows 10 to make run a flutter project, however I have this warning I would like to fix :

JavaScript

I have already try multiple solutions exposed on Stackoverflow / Git but no ones worked.

Here the settings of my project :

enter image description here

enter image description here

enter image description here

Here my flutter doctor :

JavaScript

Could you provide help please ?

Advertisement

Answer

So here the action I have done: Install latest version of jdk: https://www.oracle.com/java/technologies/javase-downloads.html

Install latest version of jre: https://www.oracle.com/java/technologies/javase-jre8-downloads.html

Go to: C:Program FilesAndroid and remove all version of Android Studio

Go to Windows search: Environement Variables > Environement Variables > System Variables and add JAVA_HOME with value the path to your jdk (C:Program FilesJavajdk-16.0.2)

Install Android Studio again

Go to file > Project Structure

enter image description here

Put your JDK path:

enter image description here

enter image description here

Go to file > Settings

enter image description here

Click on Show Package Details and retrograde to 20.1 or 22.2 (not sur for 22.2 but read that for some it works)

enter image description here

Verify you’re on a stable version:

enter image description here

flutter pub get flutter pub upgrade flutter pub outdated flutter doctor -v

and it should be good: • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement