Camera.hasResult() causing Compilation Error

I’m new to Photon Vision but trying to use it for this season. But when I call the .hasResult() method I receive the error saying:
error: cannot access ProtobufSerializable
further error: class file for edu.wpi.first.util.protobuf.ProtobufSerializable not found

I do not know what is causing this error as I followed the setup as provided by PhotonVision. I’ve implemented sample code into subsystem methods as well as in commands, but every time that .hasResult() is called I get the error.

If anyone has any pointers or solutions that would be amazing.

1 Like

Could you post your entire code please? Preferably on GitHub.

I just discovered that I had been using the 2023 version of wpilib. I imported everything to 2024 and that seemed to fix everything. I am now starting to think I need more sleep.