Home > Mobile >  How to run tasks of my Gradle project in VS Code
How to run tasks of my Gradle project in VS Code

Time:11-26

I have create a Gradle Java app via the enter image description here

Also when I try from the menu Terminal -> Run Task.. -> gradle, then VS Code says "No Gradle tasks found".

Where/how does the Gradle extension show the Gradle tasks of my the project?

CodePudding user response:

VS Code doesn't see the local Gradle install by defaukt. It tries to download Gradle again and this fails here (because the machine has no internet).

In VS Code set java.import.gradle.home and java.import.gradle.wrapper.enabled appropriately:

Gradle settinsg in VS Code

  • Related