‘gradlew’ not recognized

Ive been trying to build and deploy some code for our new swerves, all I have changed from the orginal code was adding the encoder offsets and now I have been getting these errors when I try to build and deploy the code. I have tried this on several different laptops and nothing has worked still
(P.S. I am not a programmer so please go easy on me)

‘gradlew’ is not recognized as an internal or external command,
operable program or batch file.

  • The terminal process “cmd.exe /d /c gradlew build -Dorg.gradle.java.home=“C:\Users\Public\wpilib\2024\jdk”” terminated with exit code: 1.
  • Terminal will be reused by tasks, press any key to close it.

That usually means you opened the wrong folder level in the heirarchy. Make sure build.gradle is at the root level in the vscode explorer (e.g. your top-level vscode explorer should be the project’s folder with build.gradle in it).

3 Likes