Error while building robot code

When I use build.gradle I get these error codes

The terminal process “cmd.exe /d /c gradlew build generateVsCodeConfig -Dorg.gradle.java.home=“C:\Users\Public\wpilib\2022\jdk”” terminated with exit code: 1.

Execution failed for task ‘:compileFrcUserProgramReleaseExecutableFrcUserProgramCpp’.

A build operation failed.
C++ compiler failed while compiling Robot.cpp.
See the complete log at: file:///C:/Users/peyto/Desktop/2022_RoboCats/build/tmp/compileFrcUserProgramReleaseExecutableFrcUserProgramCpp/output.txt
C++ compiler failed while compiling Robot.cpp.

Execution failed for task ‘:compileFrcUserProgramDebugExecutableFrcUserProgramCpp’.

A build operation failed.
C++ compiler failed while compiling Robot.cpp.
See the complete log at: file:///C:/Users/peyto/Desktop/2022_RoboCats/build/tmp/compileFrcUserProgramDebugExecutableFrcUserProgramCpp/output.txt
C++ compiler failed while compiling Robot.cpp.

I have tried reinstalling the WPILib and trying to build the code on another computer.

Thats an error in your code. Scroll up in the log, and it will tell you what is wrong.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.