Unable to Compile Code. Getting the error "wpilibj.Sendable cannot be resolved."

I installed WPI 2022. I started this project in 2021 and had this error back then but when I updated it to 2022 it still kept the error.
// The type edu.wpi.first.wpilibj.Sendable cannot be resolved. It is indirectly referenced from required .class

private final MecanumDrive m_drive = new MecanumDrive(m_frontLeft, m_rearLeft, m_frontRight, m_rearRight);

Has anyone run into this before?

What’s the full error? What .class is referencing it?

Whatever class/library is referencing that class has not been updated to 2022. WPILib moved Sendable to a different package/namespace for 2022

We saw this with our code after the importer.

The fix was to reinstall the vendordeps with more recent versions of their JSON files. For example, the CTRE JSON link is different for 2022 than it has been in years past.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.