Rev 2m distance senor library not working

We are trying to use the revrobotics 2m distance sensor i installed the library but when it built the code the following error happened

FAILURE: Build failed with an exception.

  • Where:
    Build file ‘C:\Users\meest_weby6n6\Desktop\Robotics\Programming\2020\2020\build.gradle’ line: 66

  • What went wrong:
    Could not determine the dependencies of task ‘:jar’.

Could not resolve all files for configuration ‘:runtimeClasspath’.
Could not find com.revrobotics.frc:DistanceSensor-java:0.1.0.
Searched in the following locations:
- file:/C:/Users/Public/wpilib/2020/maven/com/revrobotics/frc/DistanceSensor-java/0.1.0/DistanceSensor-java-0.1.0.pom
- JFrog
- http://www.revrobotics.com/content/sw/max/sdk/maven/com/revrobotics/frc/DistanceSensor-java/0.1.0/DistanceSensor-java-0.1.0.pom
- http://devsite.ctr-electronics.com/maven/release/com/revrobotics/frc/DistanceSensor-java/0.1.0/DistanceSensor-java-0.1.0.pom
- https://repo.maven.apache.org/maven2/com/revrobotics/frc/DistanceSensor-java/0.1.0/DistanceSensor-java-0.1.0.pom
Required by:
project :

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See Command-Line Interface

BUILD FAILED in 3s
The terminal process terminated with exit code: 1

It seems as though it could not find the library I have tried checking for updates and re installing it but it just says there is nothing to install or there are no updates. Does anyone know a solution to this?

Here is the answer I got from RevRobotics yesterday:

Our software team is working on getting an update for the 2020 WPI Lib changes. I have you on a list to be notified when there is an update.

I suggest sending an email to [email protected] and ask to be put on the same list.

You can watch progress on this at https://github.com/REVrobotics/2m-Distance-Sensor/. The github site has a pre-release version (follow the Releases link). I was able to build it from source and successfully build c++ code against it. I believe that downloading the 2m-Distance-Sensor-SDK-2020.0.1.zip would give you the same things that I built. I have no insight about whether it will work with java – but it has a better chance of working than the 0.1.0 version that you tried.

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