javaandroidwindowssdkflutter-doctor

flutter doctor cannot execute AdoptOpenJDK to determine the version


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