'I can't run dart/flutter code due to this error. Any help? I
Kotlin could not find the required JDK tools in the Java installation 'C:\Program Files\Java\jre1.8.0_291' used by Gradle. Make sure Gradle is running on a JDK, not JRE.
I am using Visual Studio Code.
Solution 1:[1]
you can check it is already installed or not with executing
which java
command on terminal, then you can change your path on system environments.
Solution 2:[2]
flutter doctor command gives you every dependency problem you might be missing
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Erdem |
| Solution 2 | Patrik Szabó |
