Issue with instantiating libraries

We are trying to run our code from last year on our robot, but now it is not working and multiple libraries are giving us errors in the driverstation. One of them is below. There are no errors in VScode and we have navX in the vendordeps.

ERROR  1  Unhandled exception instantiating robot com.kauailabs.navx.frc.AHRS java.lang.NoSuchMethodError: ‘boolean edu.wpi.first.util.RuntimeDetector.isRaspbian()’  com.kauailabs.navx.frc.AHRS.(AHRS.java:227) 
ERROR  1  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.
 edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:306) 
ERROR  1  Could not instantiate robot com.kauailabs.navx.frc.AHRS!  edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:312)

This is also happening with the openCV mat, which also throws a UnsatisfiedLinkError. We’re not sure how to resolve this issue, so any advice would be greatly appreciated.

That particular error is caused because you’re using the 2022 NavX library not the 2023 library

OpenCV errors are also likely caused by mismatched versions. Make sure you’ve updated all libraries to the 2023 releases.