Edit: It turned out the build.gradle had
implementation 'com.revrobotics.frc:SparkMax-java:1.5.4' in it and so was downloading the older jar.
I’m working on updating our code for 2022, and since WPI’s
SpeedController interface is deprecated, we’re replacing that with the
MotorController. The problem is that a
CANSparkMax can’t be passed in as a
MotorController because even though the docs say it extends
MotorController in addition to
SpeedController, the jars I have on my computer don’t extend from
MotorController, resulting in a compilation error.
I’ve installed the new REVLib dependency online and then offline (through WPILib’s VS Code extension) with no luck. I’ve also run
.\gradlew clean several times just in case.
Any idea why the downloaded jars might be out of date? Is there an even newer link to install from?
Edit: I also deleted the
gradle folders after Fletch1373’s comment and generated the wrapper and built everything again, but the error persists.