Import com.ctre cannot be resolved

In my code, I updated to the latest wpi extension for 2020 and all of my code relating to my TalonSRXs stopped working even though I also have the latest version of CTRE.
My Phoenix.json file is this: http://devsite.ctr-electronics.com/maven/release/com/ctre/phoenix/Phoenix-latest.json

This is my error I am having right now for my import com.ctre, and I have no idea why it is not working as it should and would really appreciate help for this as if I do not get this sorted out our competition robot will not be able to function.

You can’t just update the extension. Please use the installer to install the complete 2020 development environment.

Can you say what installer do I need to complete the 2020 development environment? For CTRE? Sorry, I am new at this

http://docs.wpilib.org/en/latest/docs/getting-started/getting-started-frc-control-system/offline-installation-preparations.html

nvm I fixed it, thank you for your response!

It would help others if you posted the solution.

9 Likes

What I did was download the latest Phoenix software with that JSON I linked in my post and put that inside of the vendordeps folder in the robot project.

Here is the link to the Phoenix software that solved my issue once I installed it: https://github.com/CrossTheRoadElec/Phoenix-Releases/releases/download/Phoenix_v5.16.0.0/CTRE.Phoenix.Framework.v5.16.0.0.zip

FYI install the latest installer here: https://github.com/wpilibsuite/allwpilib/releases

That will get you the new VSCode 2020 and all the other new WPILib 2020 stuff.

The JSON you linked was for 5.17.2. The release you linked was for 5.16.0.

While 5.16.0 may compile, I don’t think it will run on a roborio with 2020 wpilib.

You are correct, the CTRE installer for 2020 is this link: https://www.ctr-electronics.com/hro.html#product_tabs_technical_resources

1 Like

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