[英]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. Kotlin 在 Gradle 使用的 Java 安装 'C:\Program Files\Java\jre1.8.0_291' 中找不到所需的 JDK 工具。确保 Gradle 在 JDK 上运行,而不是 JRE。
I am using Visual Studio Code.我正在使用 Visual Studio 代码。
you can check it is already installed or not with executing您可以通过执行来检查它是否已经安装
which java哪个 java
command on terminal, then you can change your path on system environments.终端上的命令,然后您可以更改系统环境中的路径。
flutter doctor command gives you every dependency problem you might be missing flutter 医生命令为您提供您可能会遗漏的所有依赖性问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.