Phoenix.json Build failed

When we tried to build the Phoenix.json,the following error occurred。
Starting a Gradle Daemon, 1 incompatible and 9 stopped Daemons could not be reused, use --status for details

FAILURE: Build failed with an exception.

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

Could not resolve all files for configuration ‘:nativeRelease’.
Could not resolve com.revrobotics.frc:REVLib-driver:2022.1.1.
Required by:
project :
Could not resolve com.revrobotics.frc:REVLib-driver:2022.1.1.
Could not get resource ‘JFrog’.
Could not GET ‘JFrog’.
No such host is known (frcmaven.wpi.edu)
Could not resolve com.revrobotics.frc:REVLib-driver:2022.1.1.
Could not get resource ‘https://maven.revrobotics.com/com/revrobotics/frc/REVLib-driver/2022.1.1/REVLib-driver-2022.1.1.pom’.
Could not GET ‘https://maven.revrobotics.com/com/revrobotics/frc/REVLib-driver/2022.1.1/REVLib-driver-2022.1.1.pom’.
No such host is known (maven.revrobotics.com)
Could not resolve com.revrobotics.frc:REVLib-driver:2022.1.1.
Could not get resource ‘https://repo.maven.apache.org/maven2/com/revrobotics/frc/REVLib-driver/2022.1.1/REVLib-driver-2022.1.1.pom’.
Could not GET ‘https://repo.maven.apache.org/maven2/com/revrobotics/frc/REVLib-driver/2022.1.1/REVLib-driver-2022.1.1.pom’. > No such host is known (repo.maven.apache.org)

  • 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.

BUILD FAILED in 24s
The terminal process “cmd.exe /d /c gradlew build -Dorg.gradle.java.home=“C:\Users\Public\wpilib\2022\jdk”” terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

Those errors indicate that Gradle can’t find the revlib artifacts. You need to either use the REV offline installer (so they are available locally) or do a build when connected to the internet so Gradle can download them.

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