0

here the image show my current problem I do my best to modify the path. the path of JAVA_HOME is right but I've been confuse because that is always show up even though that I already modified it .if I try to put the directory path of my SDK it's the same error.

image link:https://i.stack.imgur.com/LeipD.png

BROX
  • 17
  • 3
  • Does this answer your question? [ERROR: JAVA\_HOME is not set and no 'java' command could be found in your flutter PATH. in flutter](https://stackoverflow.com/questions/64359564/error-java-home-is-not-set-and-no-java-command-could-be-found-in-your-flutter) – MendelG Feb 09 '22 at 06:47

2 Answers2

0

Change like this in your Environment Variables. Java_path

0

Following steps solved problem for me

Locate where your Android Studio is installed.

For me C:\Program Files\Android\Android Studio

  1. Check if the jre folder exists, Create a new folder called jre
  2. Copy the contents of the jbr folder and paste them into the jre folder.
  3. Check by running flutter doctor, and Restart IDE.

Thanks: roufy235 {cause}

Sidharth Mudgil
  • 1,293
  • 8
  • 25