简体   繁体   中英

Gradle for Java Extension in Visual Studio Code shows the wrong Gradle version

I installed the Gradle for Java Extension in Visual Studio Code, but I get the following message:

在此处输入图像描述

But I have installed the Gradle version 7.3.3 and linked it in the following Environment variables:

  • Path
  • GRADLE_HOME
  • GRADLE_USER_HOME

When I change the environment variables (Path and JAVA_HOME) to a JDK 11 there is no such error message.

And I set the right path in the settings of the extension, but I always get this error message

Any ideas?

Thanks in advance.

Note, the VS Code settings take precedence over the environment variables.

To change the Gradle version of your project, turn to your current project\gradle\wrapper\gradle-wrapper.properties , change the value of distributionUrl .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM