Error using Revlib

Our code:

// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.

package frc.robot;

import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.TimedRobot;
// import edu.wpi.first.wpilibj.motorcontrol.MotorController;
import com.revrobotics.CANSparkMax;
import com.revrobotics.CANSparkMax.IdleMode;
import com.revrobotics.CANSparkMaxLowLevel.MotorType;


/**
 * This sample program shows how to control a motor using a joystick. In the operator control part
 * of the program, the joystick is read and the value is written to the motor.
 *
 * <p>Joystick analog values range from -1 to 1 and speed controller inputs also range from -1 to 1
 * making it easy to work together.
 */
public class Robot extends TimedRobot {
  private static final int kMotorPort = 5;
  private static final int kJoystickPort = 0;

  private CANSparkMax m_motor;
  private Joystick m_joystick;

  @Override
  public void robotInit() {
    m_motor = new CANSparkMax(kMotorPort, MotorType.kBrushless);
    // m_motor.restoreFactoryDefaults();
    m_joystick = new Joystick(kJoystickPort);
  }

  @Override
  public void teleopPeriodic() {
    // m_motor.set(m_joystick.getY());
    System.out.println(m_joystick.getY());
  }
}

Every time we make a new instance of the class we get the error below.

The error we are getting:

ERROR  1  Unhandled exception: java.lang.RuntimeException: java.io.IOException: REVLibDriver could not be loaded from path or an embedded resource.
	attempted to load for platform /linux/athena/
Last Load Error: 
/usr/local/frc/third-party/lib/libREVLibDriver.so: /usr/local/frc/third-party/lib/libREVLibDriver.so: undefined symbol: _ZN3wpi10SafeThread4StopEv
  com.revrobotics.jni.RevJNIWrapper.<clinit>(RevJNIWrapper.java:44) 
 Error at com.revrobotics.jni.RevJNIWrapper.<clinit>(RevJNIWrapper.java:44): Unhandled exception: java.lang.RuntimeException: java.io.IOException: REVLibDriver could not be loaded from path or an embedded resource. 

We have tried to install it through Vendor Libraries online and offline.

Can you post the output of WPILIB: Open Project Information? I suspect either your revlib version or wpilib version are mismatching.

Here is the project information.

image

You have the latest RevLib, but need to update to the latest version of WPILib.