Dependency Build Error

Hey guys! I am having trouble resolving this error I get whenever I build my code:

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\frcuser\Desktop\YithCP\characterization-project\build.gradle’ line: 59

  • 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.cscore:cscore-java:2020.+.
Required by:
project : > com.kauailabs.navx.frc:navx-java:3.1.400
Failed to list versions for edu.wpi.first.cscore:cscore-java.
Unable to load Maven meta-data from https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/cscore/cscore-java/maven-metadata.xml.
Could not HEAD ‘https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/cscore/cscore-java/maven-metadata.xml’.
Remote host terminated the handshake
Failed to list versions for edu.wpi.first.cscore:cscore-java.
Unable to load Maven meta-data from http://www.revrobotics.com/content/sw/max/sdk/maven/edu/wpi/first/cscore/cscore-java/maven-metadata.xml.
Could not get resource ‘http://www.revrobotics.com/content/sw/max/sdk/maven/edu/wpi/first/cscore/cscore-java/maven-metadata.xml’.
Could not GET ‘https://www.revrobotics.com/content/sw/max/sdk/maven/edu/wpi/first/cscore/cscore-java/maven-metadata.xml’.
Remote host terminated the handshake
Failed to list versions for edu.wpi.first.cscore:cscore-java.
Unable to load Maven meta-data from https://repo1.maven.org/maven2/edu/wpi/first/cscore/cscore-java/maven-metadata.xml.
Could not get resource ‘https://repo1.maven.org/maven2/edu/wpi/first/cscore/cscore-java/maven-metadata.xml’.
Could not GET ‘https://repo1.maven.org/maven2/edu/wpi/first/cscore/cscore-java/maven-metadata.xml’.
Remote host terminated the handshake
Failed to list versions for edu.wpi.first.cscore:cscore-java.
Unable to load Maven meta-data from https://repo.maven.apache.org/maven2/edu/wpi/first/cscore/cscore-java/maven-metadata.xml.
Could not get resource ‘https://repo.maven.apache.org/maven2/edu/wpi/first/cscore/cscore-java/maven-metadata.xml’.
Could not GET ‘https://repo.maven.apache.org/maven2/edu/wpi/first/cscore/cscore-java/maven-metadata.xml’.
Remote host terminated the handshake
Could not resolve edu.wpi.first.cameraserver:cameraserver-java:2020.+.
Required by:
project : > com.kauailabs.navx.frc:navx-java:3.1.400
Failed to list versions for edu.wpi.first.cameraserver:cameraserver-java.
Unable to load Maven meta-data from https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/cameraserver/cameraserver-java/maven-metadata.xml.
Could not HEAD ‘https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/cameraserver/cameraserver-java/maven-metadata.xml’.
Remote host terminated the handshake
Failed to list versions for edu.wpi.first.cameraserver:cameraserver-java.
Unable to load Maven meta-data from http://www.revrobotics.com/content/sw/max/sdk/maven/edu/wpi/first/cameraserver/cameraserver-java/maven-metadata.xml.
Could not get resource ‘http://www.revrobotics.com/content/sw/max/sdk/maven/edu/wpi/first/cameraserver/cameraserver-java/maven-metadata.xml’.
Could not GET ‘https://www.revrobotics.com/content/sw/max/sdk/maven/edu/wpi/first/cameraserver/cameraserver-java/maven-metadata.xml’.
Remote host terminated the handshake
Failed to list versions for edu.wpi.first.cameraserver:cameraserver-java.
Unable to load Maven meta-data from https://repo1.maven.org/maven2/edu/wpi/first/cameraserver/cameraserver-java/maven-metadata.xml.
Could not get resource ‘https://repo1.maven.org/maven2/edu/wpi/first/cameraserver/cameraserver-java/maven-metadata.xml’.
Could not GET ‘https://repo1.maven.org/maven2/edu/wpi/first/cameraserver/cameraserver-java/maven-metadata.xml’.
Remote host terminated the handshake
Failed to list versions for edu.wpi.first.cameraserver:cameraserver-java.
Unable to load Maven meta-data from https://repo.maven.apache.org/maven2/edu/wpi/first/cameraserver/cameraserver-java/maven-metadata.xml.
Could not get resource ‘https://repo.maven.apache.org/maven2/edu/wpi/first/cameraserver/cameraserver-java/maven-metadata.xml’.
Could not GET ‘https://repo.maven.apache.org/maven2/edu/wpi/first/cameraserver/cameraserver-java/maven-metadata.xml’.
Remote host terminated the handshake
Could not resolve edu.wpi.first.ntcore:ntcore-java:2020.+.
Required by:
project : > com.kauailabs.navx.frc:navx-java:3.1.400
Failed to list versions for edu.wpi.first.ntcore:ntcore-java.
Unable to load Maven meta-data from https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/ntcore/ntcore-java/maven-metadata.xml.
Could not HEAD ‘https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/ntcore/ntcore-java/maven-metadata.xml’.
Remote host terminated the handshake
Failed to list versions for edu.wpi.first.ntcore:ntcore-java.
Unable to load Maven meta-data from http://www.revrobotics.com/content/sw/max/sdk/maven/edu/wpi/first/ntcore/ntcore-java/maven-metadata.xml.
Could not get resource ‘http://www.revrobotics.com/content/sw/max/sdk/maven/edu/wpi/first/ntcore/ntcore-java/maven-metadata.xml’.
Could not GET ‘https://www.revrobotics.com/content/sw/max/sdk/maven/edu/wpi/first/ntcore/ntcore-java/maven-metadata.xml’.
Remote host terminated the handshake
Failed to list versions for edu.wpi.first.ntcore:ntcore-java.
Unable to load Maven meta-data from https://repo1.maven.org/maven2/edu/wpi/first/ntcore/ntcore-java/maven-metadata.xml.
Could not get resource ‘https://repo1.maven.org/maven2/edu/wpi/first/ntcore/ntcore-java/maven-metadata.xml’.
Could not GET ‘https://repo1.maven.org/maven2/edu/wpi/first/ntcore/ntcore-java/maven-metadata.xml’.
Remote host terminated the handshake
Failed to list versions for edu.wpi.first.ntcore:ntcore-java.
Unable to load Maven meta-data from https://repo.maven.apache.org/maven2/edu/wpi/first/ntcore/ntcore-java/maven-metadata.xml.
Could not get resource ‘https://repo.maven.apache.org/maven2/edu/wpi/first/ntcore/ntcore-java/maven-metadata.xml’.
Could not GET ‘https://repo.maven.apache.org/maven2/edu/wpi/first/ntcore/ntcore-java/maven-metadata.xml’.
Remote host terminated the handshake
Could not resolve edu.wpi.first.wpilibj:wpilibj-java:2020.+.
Required by:
project : > com.kauailabs.navx.frc:navx-java:3.1.400
Failed to list versions for edu.wpi.first.wpilibj:wpilibj-java.
Unable to load Maven meta-data from https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/wpilibj/wpilibj-java/maven-metadata.xml.
Could not HEAD ‘https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/wpilibj/wpilibj-java/maven-metadata.xml’.
Remote host terminated the handshake
Failed to list versions for edu.wpi.first.wpilibj:wpilibj-java.
Unable to load Maven meta-data from http://www.revrobotics.com/content/sw/max/sdk/maven/edu/wpi/first/wpilibj/wpilibj-java/maven-metadata.xml.
Could not get resource ‘http://www.revrobotics.com/content/sw/max/sdk/maven/edu/wpi/first/wpilibj/wpilibj-java/maven-metadata.xml’.
Could not GET ‘https://www.revrobotics.com/content/sw/max/sdk/maven/edu/wpi/first/wpilibj/wpilibj-java/maven-metadata.xml’.
Remote host terminated the handshake
Failed to list versions for edu.wpi.first.wpilibj:wpilibj-java.
Unable to load Maven meta-data from https://repo1.maven.org/maven2/edu/wpi/first/wpilibj/wpilibj-java/maven-metadata.xml.
Could not get resource ‘https://repo1.maven.org/maven2/edu/wpi/first/wpilibj/wpilibj-java/maven-metadata.xml’.
Could not GET ‘https://repo1.maven.org/maven2/edu/wpi/first/wpilibj/wpilibj-java/maven-metadata.xml’.
Remote host terminated the handshake
Failed to list versions for edu.wpi.first.wpilibj:wpilibj-java.
Unable to load Maven meta-data from https://repo.maven.apache.org/maven2/edu/wpi/first/wpilibj/wpilibj-java/maven-metadata.xml.
Could not get resource ‘https://repo.maven.apache.org/maven2/edu/wpi/first/wpilibj/wpilibj-java/maven-metadata.xml’.
Could not GET ‘https://repo.maven.apache.org/maven2/edu/wpi/first/wpilibj/wpilibj-java/maven-metadata.xml’.
Remote host terminated the handshake
Could not resolve edu.wpi.first.wpiutil:wpiutil-java:2020.+.
Required by:
project : > com.kauailabs.navx.frc:navx-java:3.1.400
Failed to list versions for edu.wpi.first.wpiutil:wpiutil-java.
Unable to load Maven meta-data from https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/wpiutil/wpiutil-java/maven-metadata.xml.
Could not HEAD ‘https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/wpiutil/wpiutil-java/maven-metadata.xml’.
Remote host terminated the handshake
Failed to list versions for edu.wpi.first.wpiutil:wpiutil-java.
Unable to load Maven meta-data from http://www.revrobotics.com/content/sw/max/sdk/maven/edu/wpi/first/wpiutil/wpiutil-java/maven-metadata.xml.
Could not get resource ‘http://www.revrobotics.com/content/sw/max/sdk/maven/edu/wpi/first/wpiutil/wpiutil-java/maven-metadata.xml’.
Could not GET ‘https://www.revrobotics.com/content/sw/max/sdk/maven/edu/wpi/first/wpiutil/wpiutil-java/maven-metadata.xml’.
Remote host terminated the handshake
Failed to list versions for edu.wpi.first.wpiutil:wpiutil-java.
Unable to load Maven meta-data from https://repo1.maven.org/maven2/edu/wpi/first/wpiutil/wpiutil-java/maven-metadata.xml.
Could not get resource ‘https://repo1.maven.org/maven2/edu/wpi/first/wpiutil/wpiutil-java/maven-metadata.xml’.
Could not GET ‘https://repo1.maven.org/maven2/edu/wpi/first/wpiutil/wpiutil-java/maven-metadata.xml’.
Remote host terminated the handshake
Failed to list versions for edu.wpi.first.wpiutil:wpiutil-java.
Unable to load Maven meta-data from https://repo.maven.apache.org/maven2/edu/wpi/first/wpiutil/wpiutil-java/maven-metadata.xml.
Could not get resource ‘https://repo.maven.apache.org/maven2/edu/wpi/first/wpiutil/wpiutil-java/maven-metadata.xml’.
Could not GET ‘https://repo.maven.apache.org/maven2/edu/wpi/first/wpiutil/wpiutil-java/maven-metadata.xml’.
Remote host terminated the handshake
Could not resolve edu.wpi.first.hal:hal-java:2020.+.
Required by:
project : > com.kauailabs.navx.frc:navx-java:3.1.400
Failed to list versions for edu.wpi.first.hal:hal-java.
Unable to load Maven meta-data from https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/hal/hal-java/maven-metadata.xml.
Could not HEAD ‘https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/hal/hal-java/maven-metadata.xml’.
Remote host terminated the handshake
Failed to list versions for edu.wpi.first.hal:hal-java.
Unable to load Maven meta-data from http://www.revrobotics.com/content/sw/max/sdk/maven/edu/wpi/first/hal/hal-java/maven-metadata.xml.
Could not get resource ‘http://www.revrobotics.com/content/sw/max/sdk/maven/edu/wpi/first/hal/hal-java/maven-metadata.xml’.
Could not GET ‘https://www.revrobotics.com/content/sw/max/sdk/maven/edu/wpi/first/hal/hal-java/maven-metadata.xml’.
Remote host terminated the handshake
Failed to list versions for edu.wpi.first.hal:hal-java.
Unable to load Maven meta-data from https://repo1.maven.org/maven2/edu/wpi/first/hal/hal-java/maven-metadata.xml.
Could not get resource ‘https://repo1.maven.org/maven2/edu/wpi/first/hal/hal-java/maven-metadata.xml’.
Could not GET ‘https://repo1.maven.org/maven2/edu/wpi/first/hal/hal-java/maven-metadata.xml’.
Remote host terminated the handshake
Failed to list versions for edu.wpi.first.hal:hal-java.
Unable to load Maven meta-data from https://repo.maven.apache.org/maven2/edu/wpi/first/hal/hal-java/maven-metadata.xml.
Could not get resource ‘https://repo.maven.apache.org/maven2/edu/wpi/first/hal/hal-java/maven-metadata.xml’.
Could not GET ‘https://repo.maven.apache.org/maven2/edu/wpi/first/hal/hal-java/maven-metadata.xml’.
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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 6s
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.

The thing is, is that, I am connected to the internet when I attempt to build the project. The dependencies I have installed are all offline installs. I have tried uninstalling and reinstalling these libraries to no avail. Any help would be appreciated!!! Thanks!!

Hm. Your Gradle seems to be barfing.

  1. Try clearing your Gradle cache
  2. Completely wipe your build folder.
  3. Ensure you are not on any restricted firewall or network. School networks have been known to be iffy with the REV vendor libs.
  4. Ensure Java 11 or the WPILib Suite is installed.
  5. Update frc-characterization with pip install --upgrade frc-characterization

Just some clarifications…

  1. What is the command to clear the Gradle cache?
  2. Do you mean delete it from the project?
  3. I am on a school network. I should’ve clarified earlier. If I take this laptop home with me, it builds successfully with no issues whatsoever. But in the past, I have been able to run successful builds on this same school network
  4. I did install the WPILib Suite for this season and I am running Java 11
  5. The frc-characterization tool is updated
  1. I linked it.
  2. Yes.
  3. Verify again if it’s the school network. Unfortunately, there’s not much we can do against this for now (we’re investigating workarounds).
  4. Good, and good.
  5. Perfect.

None of those options did the trick for me :frowning:

But there are some weird stuff going on:

  1. If I use a different project, with only two libraries(WPILibNewCommands.json, and Phoenix.json), it builds successfully on the school network. No issues here.
  2. If I use other projects, with three libraries(WPILibNewCommands.json, navx_frc.json and Phoenix.json) it also builds successfully

So I think it’s having trouble fetching REVRobotics.json which corresponds with what you said and also with what the error has trouble fetching.

I’ll try uninstalling and reinstalling that library and see if it makes a difference. Just a heads up!

Edit: I also tried running a build without REVRobotics.json and now it also has the same errors with the navx library. So I have no clue what’s going on here

REV vendor lib has had issues in the past, and we are working on a solution on this for the 2022 season. A workaround is a different network, unfortunately.

1 Like

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