Pathplanner issues

this error:
edu.wpi.first.wpilibj.Compressor.getCurrent(Compressor.java:101)
frc.robot.utils.Constants$DriveConstants.(Constants.java:156)
frc.robot.drivetrain.DriveSubsystem.(DriveSubsystem.java:87)
frc.robot.RobotContainer.(RobotContainer.java:30)
frc.robot.Robot.robotInit(Robot.java:36)
edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:106)
edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:358)
edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:451)
frc.robot.Main.main(Main.java:27)
Unhandled exception: java.lang.IncompatibleClassChangeError: class com.pathplanner.lib.commands.PathPlannerAuto has interface edu.wpi.first.wpilibj2.command.Command as super class
Error at java.base/java.lang.ClassLoader.defineClass1(Native Method): Unhandled exception: java.lang.IncompatibleClassChangeError: class com.pathplanner.lib.commands.PathPlannerAuto has interface edu.wpi.first.wpilibj2.command.Command as super class
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.
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(Unknown Source)
at java.base/java.security.SecureClassLoader.defineClass(Unknown Source)
The startCompetition() method (or methods called by it) should have handled the exception above.

comes up when i run this line: autoChooser = AutoBuilder.buildAutoChooser();

in my robotcontainer file: RobustSturdy2/src/main/java/frc/robot/drivetrain/DriveSubsystem.java at master · Mateo-Johnson/RobustSturdy2 · GitHub

You are trying to use pathplannerlib 2024 with 2023 robot code. You need to install WPILib 2024 and import your project into 2024 first. Importing Last Year’s Robot Code — FIRST Robotics Competition documentation

now all of my libraries throw errors, even when i reimport them from the “newest” version with online install

I assume different errors? You will need to be on 2024 versions to be competition legal, so you will need to fix those up. We can help you with those if you post your code somewhere and tell us what compilation errors you’re getting.