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:
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?
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.
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.
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!!!