We are following the instructions on the NavX website, but our code won’t build.
We have installed the newest WPILib and VSCode, and we have installed the newest NavX software. We create a new project, “Manage vendor libraries”, “Install new libraries (online)” [or offline, we’ve tried both; our coding computer is connected to the Internet]. Then when we try to deploy or build, we get the following terminal output:
Executing task: gradlew build -Dorg.gradle.java.home=“C:\Users\Public\wpilib\2021\jdk” <
FAILURE: Build failed with an exception.
- Where:
Build file ‘C:\Users\Griffinites Delta\Desktop\code\FixingNavx\build.gradle’ line: 77- What went wrong:
Could not determine the dependencies of task ‘:jar’.
Could not resolve all files for configuration ‘:runtimeClasspath’.
Could not resolve edu.wpi.first.thirdparty.frc2020.opencv:opencv-java:3.4.7-2.
Required by:
project : > com.kauailabs.navx.frc:navx-java:4.0.416
Could not resolve edu.wpi.first.thirdparty.frc2020.opencv:opencv-java:3.4.7-2.
Could not get resource ‘https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/thirdparty/frc2020/opencv/opencv-java/3.4.7-2/opencv-java-3.4.7-2.pom’.
Could not GET ‘https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/thirdparty/frc2020/opencv/opencv-java/3.4.7-2/opencv-java-3.4.7-2.pom’.
Remote host terminated the handshake
Could not resolve edu.wpi.first.thirdparty.frc2020.opencv:opencv-java:3.4.7-2.
Could not get resource ‘https://repo1.maven.org/maven2/edu/wpi/first/thirdparty/frc2020/opencv/opencv-java/3.4.7-2/opencv-java-3.4.7-2.pom’.
Could not GET ‘https://repo1.maven.org/maven2/edu/wpi/first/thirdparty/frc2020/opencv/opencv-java/3.4.7-2/opencv-java-3.4.7-2.pom’.
Remote host terminated the handshake
Could not resolve edu.wpi.first.thirdparty.frc2020.opencv:opencv-java:3.4.7-2.
Could not get resource ‘https://repo.maven.apache.org/maven2/edu/wpi/first/thirdparty/frc2020/opencv/opencv-java/3.4.7-2/opencv-java-3.4.7-2.pom’.
Could not GET ‘https://repo.maven.apache.org/maven2/edu/wpi/first/thirdparty/frc2020/opencv/opencv-java/3.4.7-2/opencv-java-3.4.7-2.pom’.
Remote host terminated the handshake- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan
to get full insights.- Get more help at https://help.gradle.org
BUILD FAILED in 7s
The terminal process “cmd.exe /d /c gradlew build -Dorg.gradle.java.home=“C:\Users\Public\wpilib\2021\jdk”” terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
Any advice would be appreciated. Thank you!