Gradle work around not working

Hello, i am writing because we are having problems with pushing our code to our robot. build.gradle line: 3 failed. We tried using the given links to run in powershell to not luck. Are we missing something by chance?

Help us help you. Please provide a link to your code (github or similar) and the exact error message you’re seeing

This is our code and we have a problem with build gradle line 3.

I believe this is the same issue I experienced at the beginning of the season. When I experienced the issue the code would run on other laptops that weren’t mine, so if you have the opportunity to test that you could as well but it may not be necessary.

My fix to the issue involved going into my file location on my computer and removing my gradle cache folder. After doing this I was able to rebuild the code and had no issues.
I am not 100% sure on this so please be careful when it comes to deleting or moving files but if I remember correctly the folder that I removed was found through this location:
Eg: C:\Users\Team Scream.gradle
Removing the gradle folder. Again be careful when it comes to removing or changing files, this is all from my memory by me from the beginning of the season.
You may also want to wait on some other responses before acting on anything else and if you do choose to try my ideas, it may be useful to save the other gradle folder so that you can put it back if it doesn’t work. When I was doing this I renamed the gradle folder and then rebuilt my project on VsCode and it worked, and then went in and completely removed the folder.

1 Like

Can you post the exact error? Line 3 isn’t where the known issue comes from.

This is what comes up and after reading again i notice it doesn’t like the rev robotics library since it’s from 2023.

Yeah, you need to update to REV’s 2024 library. The 2023 one won’t work.

In the process of changing out the speedcontrollergroups and just gotta find what it was replaced with.

They’re just deprecated this year, so will still work. The replacement is to use motor2.follow(motor1) in the constructor.

Yeah got that figured out and after a little tweaking of the code the robot should be up and running!