flutter doctor cannot execute AdoptOpenJDK to determine the version

Issue

I followed every step for flutter installation but my flutter doctor cannot execute AdoptOpenJDK to determine the version.

Following Error occurs

enter image description here

I already checked my Path Variables and my JavaHome for the right directory "C:\Program Files\AdoptOpenJDK\jdk-15.0.1.9-hotspot\bin\java.exe"

Solution

Java Home needs to point to the directory with the bin folder, not to the executable itself.

Reread the instructions

Answered By – Thorbjørn Ravn Andersen

Answer Checked By – Katrina (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published.