Vs Code cant Deploy because of version

I need to deploy code to our robot but it won’t deploy even with a direct ethernet connection. It shows that there is communication in driver station but no robot code and whenever I try to deploy it keeps saying that the RoboRio image is too “new”. I have the 2020 Roborio image but it keeps saying that I need to have the version 2019_v14 and I really don’t know what to do. Here is the error

Executing task: gradlew deploy -PteamNumber=4376 --offline <

Task :compileJava FAILED

Task :discoverRoborio
Discovering Target roborio
admin @ roborio-4376-FRC.local: Connected.
Reason: InvalidImageException
RoboRIO Image invalid! RoboRIO: 2020_v10, allowed: [2019_v14]
admin @ 10.43.76.2: Connected.
Reason: InvalidImageException
RoboRIO Image invalid! RoboRIO: 2020_v10, allowed: [2019_v14]
2 other action(s) failed resolution.
2 other action(s) resolved but not connected.
1 other action(s) not started.
Run with --info for more details

Task :discoverRoborio FAILED

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong:
    Execution failed for task ‘:compileJava’.

Could not target platform: ‘Java SE 11’ using tool chain: ‘JDK 8 (1.8)’.

  • 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.
    ==============================================================================

2: Task failed with an exception.

  • What went wrong:
    Execution failed for task ‘:discoverRoborio’.

A failure occurred while executing jaci.gradle.deploy.target.discovery.TargetDiscoveryWorker
Target roborio could not be found at any location! See above for more details.

  • 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 5s
2 actionable tasks: 2 executed
Compilation Error!
GradleRIO detected this build failed due to a Compile Error (compileJava).
Check that all your files are saved, then scroll up in this log for more information.
Missing Target!

Are you connected to the robot, and is it on?

GradleRIO detected this build failed due to not being able to find “roborio”!
Scroll up in this error log for more information.
The terminal process terminated with exit code: 1

That says your still using the 2019 version of wpilib. You need to install the 2020 version. https://docs.wpilib.org/en/latest/docs/getting-started/getting-started-frc-control-system/wpilib-setup.html

2 Likes

You need to install the 2020 version of WPILib and import your project to upgrade it to 2020.

1 Like

Ok I will try this thank you