extractReleaseNative FAILED

Task :extractReleaseNative FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':extractReleaseNative'.
> A failure occurred while executing edu.wpi.first. gradlerio.wpi.java.ExtractNativeJavaArtifacts$ExtractFiles
   > Entry CTRE_PhoenixTools_Sim.dll is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.3.3/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details.

hi everybody, how can i fix it.

This is likely caused by having multiple Phoenix vendor deps installed, that are different versions. What vendordep json files you can have.

Can you post a screenshot of Project Information from VS Code? Click the WPILib Icon in the top right, and go to “Show Project Information” and run that.

WPILib Information:
Project Version: 2023.2.1
VS Code Version: 1.74.2
WPILib Extension Version: 2023.4.3
C++ Extension Version: 1.13.8
Java Extension Version: 1.14.0
Java Debug Extension Version: 0.47.0
Java Dependencies Extension Version 0.21.1
Java Version: 17
Java Location: C:\Users\Public\wpilib\2023\jdk
Vendor Libraries:
KauaiLabs_navX_FRC (2023.0.4)
CTRE-Phoenix (v5) (5.31.0+23.2.2)
CTRE-Phoenix (Pro) (23.0.12)
CTRE-Phoenix (Pro And v5) (23.0.12)
REVLib (2023.1.3)
WPILib-New-Commands (1.0.0)

CTRE-Phoenix (v5) (5.31.0+23.2.2)
CTRE-Phoenix (Pro) (23.0.12)
CTRE-Phoenix (Pro And v5) (23.0.12)

Thats your issue. You just need the Pro and V5 one. Remove the other 2 json files from your vendordep folder.

problem solved. Thank you very much for your help.

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