ADIS16448 build error

My team received the ADIS16448 gyro from FIRST Choice this year. I would like to use the library. It gives me a build error. Look below.

import com.analog.adis16448.frc.ADIS16448_IMU;
^
bad class file: C:\Users\Judy.gradle\caches\modules-2\files-2.1\com.github.juchong\adis16448-java\2020.r2\447045ba25a29ca06c27c8a7b3b179eae1f6c9fb\adis16448-java-2020.r2.jar(/com/analog/adis16448/frc/ADIS16448_IMU.class)
class file has wrong version 57.0, should be 55.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
1 error
Compilation Error!
GradleRIO detected this build failed due to a Compile Error (compileJava).
Check that all your files are saved, then scroll up in this log for more information.

FAILURE: Build failed with an exception.

Any idea?

I have tried to compile my code on a bunch of machines. I must be doing something wrong, especially if nobody else has this problem.

You seem to be attempting to compile with an old version of Java. The FRC JDK is the correct version. How did you install the JDK/VSCode?

I installed all that the normal way with wpilib software installation.

https://docs.wpilib.org/en/latest/docs/getting-started/getting-started-frc-control-system/wpilib-setup.html

This indicates that the library was compiled with Java 13. Have you contacted Analog Devices?

I have not heard back. How could I be the only person with this issue?

See this thread here. ADIS16470 problems

Analog Devices released the last update in the wrong version of java they are recompiling and rereleasing now

What do I need to do in order to get this to work?

Hi everyone! The update should be live! Sorry for the delay, but I haven’t been able to get to a PC to build the release. The software on the maven repository should take care of a few edge cases and adds a feature to adjust the datarate if needed.

Choose “Manage Vendor Libraries” and choose “Check for Updates.” Thank you for the fix.

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