Java错误中的错误 - 视觉工作室代码

发布于 2025-02-12 04:24:33 字数 437 浏览 3 评论 0原文

今天,在编译项目颤抖时,它给了我这个错误。据我了解,这是一个Java问题。

  • Java JDK 11安装在PC上,
  • 但是Visual Studio代码似乎看不到。

在互联网上搜索我没有找到该怎么做(或者也许我不明白)。感谢那些能够帮助我的人。 “在此处输入图像说明”

”

​。

Today while compiling a project Flutter, it gave me this error. As I understand it is a Java problem.

  • Java JDK 11 is installed on the PC,
  • but Visual Studio Code doesn't seem to see it.

Searching on the internet I didn't find how to do it (or maybe I didn't understand). Thanks to those who will be able to help me.
enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼睛会笑 2025-02-19 04:24:33

解决了!!!
尝试在gradle.properties

org.gradle.java.home=C:/Program Files/Java/jdk-17.0.3.1

N.B中添加此行:“ JDK-17.0.3.1”此处给您的JDK版本号

SOLVED!!!
Try to add this line in gradle.properties

org.gradle.java.home=C:/Program Files/Java/jdk-17.0.3.1

N.B: "jdk-17.0.3.1" here give your jdk version number

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文