Recently, we faced a problem we never met before and have no idea on how to solve it. We’re able to ‘‘build’’ our code in the vscode but not able to ‘‘deploy’’ our code to the roboRio. What should we do to fix the problem? I’ll be sincerely appreciate for every reply and answer. Below is the error message it pop out in the terminal.
Driver Station reported IP: 172.22.11.2
> Task :discoverroborio FAILED
Discovering Target roborio
admin @ 10.71.30.2: Connected.
Reason: InvalidImageException
Invalid RoboRIO Image Version!
RoboRIO image and GradleRIO versions are incompatible:
Current image version: 2022_v3.0
GradleRIO-compatible image versions: 2022_v4.*
See https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-3/imaging-your-roborio.htmlfor information about upgrading the RoboRIO image.
See https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/wpilib-setup.html and
https://docs.wpilib.org/en/stable/docs/software/vscode-overview/importing-gradle-project.html
for information about updating WPILib and GradleRIO.
admin @ null: Connected.
Reason: InvalidImageException
Invalid RoboRIO Image Version!
RoboRIO image and GradleRIO versions are incompatible:
Current image version: 2022_v3.0
GradleRIO-compatible image versions: 2022_v4.*
See https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-3/imaging-your-roborio.htmlfor information about upgrading the RoboRIO image.
See https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/wpilib-setup.html and
https://docs.wpilib.org/en/stable/docs/software/vscode-overview/importing-gradle-project.html
for information about updating WPILib and GradleRIO.
admin @ roborio-7130-FRC.local: Connected.
Reason: InvalidImageException
Invalid RoboRIO Image Version!
RoboRIO image and GradleRIO versions are incompatible:
Current image version: 2022_v3.0
GradleRIO-compatible image versions: 2022_v4.*
See https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-3/imaging-your-roborio.htmlfor information about upgrading the RoboRIO image.
See https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/wpilib-setup.html and
https://docs.wpilib.org/en/stable/docs/software/vscode-overview/importing-gradle-project.html
for information about updating WPILib and GradleRIO.
admin @ roborio-7130-FRC: Connected.
Reason: InvalidImageException
Invalid RoboRIO Image Version!
RoboRIO image and GradleRIO versions are incompatible:
Current image version: 2022_v3.0
GradleRIO-compatible image versions: 2022_v4.*
See https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-3/imaging-your-roborio.htmlfor information about upgrading the RoboRIO image.
See https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/wpilib-setup.html and
https://docs.wpilib.org/en/stable/docs/software/vscode-overview/importing-gradle-project.html
for information about updating WPILib and GradleRIO.
admin @ 172.22.11.2: Connected.
Reason: InvalidImageException
Invalid RoboRIO Image Version!
RoboRIO image and GradleRIO versions are incompatible:
Current image version: 2022_v3.0
GradleRIO-compatible image versions: 2022_v4.*
See https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-3/imaging-your-roborio.htmlfor information about upgrading the RoboRIO image.
See https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/wpilib-setup.html and
https://docs.wpilib.org/en/stable/docs/software/vscode-overview/importing-gradle-project.html
for information about updating WPILib and GradleRIO.
2 other action(s) failed resolution.
Run with --info for more details
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.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':discoverroborio'.
> A failure occurred while executing edu.wpi.first.deployutils.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 2s
4 actionable tasks: 2 executed, 2 up-to-date
The terminal process "cmd.exe /d /c gradlew deploy -PteamNumber=7130 --offline -Dorg.gradle.java.home="C:\Users\Public\wpilib\2022\jdk"" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.