FRC robot problems

When I deploy my robot code, it just says this. My Github link is: GitHub - Mateo-Johnson/RobustSturdy2

  • ********** Robot program starting **********

  • NT: Listening on NT3 port 1735, NT4 port 5810

  • navX-Sensor Java library for FRC

  • navX-Sensor Connected.

  • navX-Sensor Board Type 50 (navX-MXP (Classic))

  • navX-Sensor firmware version 3.0

  • navX-Sensor onboard startup calibration complete.

  • navX-Sensor Yaw angle auto-reset to 0.0 due to startup calibration.

  • Unhandled exception: java.lang.NoSuchMethodError: ‘edu.wpi.first.wpilibj2.command.Command edu.wpi.first.wpilibj2.command.Commands.none()’

  • Error at com.pathplanner.lib.auto.AutoBuilder.buildAutoChooser(AutoBuilder.java:621): Unhandled exception: java.lang.NoSuchMethodError: ‘edu.wpi.first.wpilibj2.command.Command edu.wpi.first.wpilibj2.command.Commands.none()’

  • at com.pathplanner.lib.auto.AutoBuilder.buildAutoChooser(AutoBuilder.java:621)

  • at com.pathplanner.lib.auto.AutoBuilder.buildAutoChooser(AutoBuilder.java:587)

  • at frc.robot.drivetrain.DriveSubsystem.(DriveSubsystem.java:122)

  • at frc.robot.RobotContainer.(RobotContainer.java:24)

  • at frc.robot.Robot.robotInit(Robot.java:36)

  • at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:106)

  • at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:358)

  • at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:451)

  • at frc.robot.Main.main(Main.java:27)

  • The robot program quit unexpectedly. This is usually due to a code error.
    The above stacktrace can help determine where the error occurred.
    See Reading Stacktraces — FIRST Robotics Competition documentation for more information.

  • Warning at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:373): The robot program quit unexpectedly. This is usually due to a code error.

  • The above stacktrace can help determine where the error occurred.

  • See Reading Stacktraces — FIRST Robotics Competition documentation for more information.

  • The startCompetition() method (or methods called by it) should have handled the exception above.

  • Error at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:380): The startCompetition() method (or methods called by it) should have handled the exception above.

Do the PathPlanner and WPILib versions match?

i fixed the issue, just removed the code line creating the pathplanner auto chooser, and decided i’d figure it out later