Couldn't Resolve Classpath problem

I’m having troubles with trying to build a code and I’m not sure how to fix it. I need to be able to build and deploy at our workshop, but it builds completely fine at home. It keeps coming up with the following:

  • What went wrong:
    A problem occurred configuring root project ‘FRC Reanu Keeves Robot Code 2020- Imported’.

Could not resolve all artifacts for configuration ‘:classpath’.
Could not resolve edu.wpi.first:GradleRIO:2020.2.1.
Required by:
project : > edu.wpi.first.GradleRIO:edu.wpi.first.GradleRIO.gradle.plugin:2020.2.1
Could not resolve edu.wpi.first:GradleRIO:2020.2.1.
Could not get resource ‘https://plugins.gradle.org/m2/edu/wpi/first/GradleRIO/2020.2.1/GradleRIO-2020.2.1.module’.
Could not GET ‘https://jcenter.bintray.com/edu/wpi/first/GradleRIO/2020.2.1/GradleRIO-2020.2.1.module’.
Connection reset

  • 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 4s
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

I’ve tried going to the offered site but it keeps giving a 404. I’ve found the site with the download, uploaded to the Program Files, and restarted VS Code, still nothing. Is it just an internet issue? I can’t fix that since I’m still enrolled in my high school, so if anyone has any fixes, that’ll be awesome. Thank You!!!

It looks like the version is set to 2020.2.1. My guess is that this version of GradleRIO is not yet published to the Gradle plugin registry (as the tag on allwpilib is made only 18 hours ago). So you can either revert it to 2020.1.2, or wait until the official installer is published

How did you get to 2020.2.1?

1 Like

Just kinda found it, it was in the gradle plugins when I was trying to install it. At first I thought it was that It wasn’t updated, but turns out not to be the case

2020.2.2 is the latest version of WPILib. Please follow the directions here to update your project.

Still comes up with the same exact error, but instead of 2020.2.1, I changed it to 2020.1.2, still not building

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