Help with a 125 problem error on VS Code, FRC Team 7479

Hi, I’m really struggling on how to fix this issue I’m having with VS Code, and at this point I have no idea what I’m doing. First there was this JAVA_HOME error, saying that the Java environment was missing, or something like that. Then, its coming up with an error which can’t resolve any of my code, so everything is broken. I’m fairly new to programming on our team, so if anyone can help me that would really help alot.
This is the error its coming up with now:

Could not run build action using Gradle distribution ‘https://services.gradle.org/distributions/gradle-5.0-bin.zip’.
A problem occurred configuring root project ‘FRC Coding’.
Could not resolve all artifacts for configuration ‘:classpath’.
Could not resolve com.google.code.gson:gson:2.2.4.
Required by:

Everything passed this error, which pops up twice in the terminal is all of our variables saying that they are not resolved and can’t be identified.

And I have no idea what any of this means or how to fix it. There are 125 problems accounted for the entire code. Someone please help…

Can you please attach your build.gradle file?

build.gradle (2.2 KB)

That Connection Reset line sounds like a networking issue. Are you by any chance on a school or corporate network? Or maybe using a school/business computer with restricted user permissions?

Have you tried building your code first while connected to the internet and not to the robot before trying to deploy code to the robot?

This entire post sounds like you didn’t use the WPILib all-in-one installer. Did you use the all-in-one installer? If so, are you using the copy of VS Code that it installs?

yes and it fails everytime and comes up with this error exactly now:

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘FRC Coding’.

Could not resolve all artifacts for configuration ‘:classpath’.
Could not resolve com.google.code.gson:gson:2.2.4.
Required by:
project : > edu.wpi.first.GradleRIO:edu.wpi.first.GradleRIO.gradle.plugin:2019.4.1 > edu.wpi.first:GradleRIO:2019.4.1
project : > edu.wpi.first.GradleRIO:edu.wpi.first.GradleRIO.gradle.plugin:2019.4.1 > edu.wpi.first:GradleRIO:2019.4.1 > edu.wpi.first:gradle-cpp-vscode:0.7.1
No cached version of com.google.code.gson:gson:2.2.4 available for offline mode.
Could not resolve com.jcraft:jsch:0.1.53.
Required by:
project : > edu.wpi.first.GradleRIO:edu.wpi.first.GradleRIO.gradle.plugin:2019.4.1 > edu.wpi.first:GradleRIO:2019.4.1
project : > edu.wpi.first.GradleRIO:edu.wpi.first.GradleRIO.gradle.plugin:2019.4.1 > edu.wpi.first:GradleRIO:2019.4.1 > edu.wpi.first:ToolchainPlugin:2019.4.1 > jaci.gradle:EmbeddedTools:2018.12.18
No cached version of com.jcraft:jsch:0.1.53 available for offline mode.
Could not resolve org.apache.httpcomponents:httpclient:4.5.2.
Required by:
project : > edu.wpi.first.GradleRIO:edu.wpi.first.GradleRIO.gradle.plugin:2019.4.1 > edu.wpi.first:GradleRIO:2019.4.1 > edu.wpi.first:ToolchainPlugin:2019.4.1 > de.undercouch:gradle-download-task:3.1.2
No cached version of org.apache.httpcomponents:httpclient:4.5.2 available for offline mode.

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

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

Executing task: gradlew build -Dorg.gradle.java.home=“C:\Program Files\AdoptOpenJDK\jdk-11.0.5.10-hotspot” <

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘FRC Coding’.

Could not resolve all artifacts for configuration ‘:classpath’.
Could not resolve com.google.code.gson:gson:2.2.4.
Required by:
project : > edu.wpi.first.GradleRIO:edu.wpi.first.GradleRIO.gradle.plugin:2019.4.1 > edu.wpi.first:GradleRIO:2019.4.1
project : > edu.wpi.first.GradleRIO:edu.wpi.first.GradleRIO.gradle.plugin:2019.4.1 > edu.wpi.first:GradleRIO:2019.4.1 > edu.wpi.first:gradle-cpp-vscode:0.7.1
Could not resolve com.google.code.gson:gson:2.2.4.
Could not get resource ‘https://plugins.gradle.org/m2/com/google/code/gson/gson/2.2.4/gson-2.2.4.pom’.
Could not GET ‘https://jcenter.bintray.com/com/google/code/gson/gson/2.2.4/gson-2.2.4.pom’.
Connection reset
Could not resolve com.jcraft:jsch:0.1.53.
Required by:
project : > edu.wpi.first.GradleRIO:edu.wpi.first.GradleRIO.gradle.plugin:2019.4.1 > edu.wpi.first:GradleRIO:2019.4.1
project : > edu.wpi.first.GradleRIO:edu.wpi.first.GradleRIO.gradle.plugin:2019.4.1 > edu.wpi.first:GradleRIO:2019.4.1 > edu.wpi.first:ToolchainPlugin:2019.4.1 > jaci.gradle:EmbeddedTools:2018.12.18
Could not resolve com.jcraft:jsch:0.1.53.
Could not get resource ‘https://plugins.gradle.org/m2/com/jcraft/jsch/0.1.53/jsch-0.1.53.pom’.
Could not GET ‘https://jcenter.bintray.com/com/jcraft/jsch/0.1.53/jsch-0.1.53.pom’.
Connection reset
Could not resolve org.apache.httpcomponents:httpclient:4.5.2.
Required by:
project : > edu.wpi.first.GradleRIO:edu.wpi.first.GradleRIO.gradle.plugin:2019.4.1 > edu.wpi.first:GradleRIO:2019.4.1 > edu.wpi.first:ToolchainPlugin:2019.4.1 > de.undercouch:gradle-download-task:3.1.2
Could not resolve org.apache.httpcomponents:httpclient:4.5.2.
Could not get resource ‘https://plugins.gradle.org/m2/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.pom’.
Could not GET ‘https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.pom’.
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 9s
The terminal process terminated with exit code: 1

Are you connected to the internet?

yes i am

Is the network you’re using filtering internet traffic, like how most school networks are set up? Try selecting one of the URLs in the stacktrace in a browser and see if it downloads the file properly.

Yes I believe it was our schools internet and firewall protocols, because I went home to build and deploy and did it without problem. I don’t there was anything else associated with the problem because everything is working fine. Thank You!!!

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