Have troubles Importing code to 2024 WPILib

Recently our team started programing, our robot and are using our last year’s code as a template, however, when we enter the file it tells us we need to import it. Alright, nothing out of the usual so we click yes and it takes us to the WPILib gradle, we input the data but then it throws “Failed to detect project type. Did you select the build.gradle of a WPILib project?”, however, our gradke project is “c:\Users\Student\robot-\build.gradle” does anybody have advice?

Please post your entire project to github or elsewhere. It’s likely something else is messed up in your project.

It works perfectly in WPILib 2023

That doesn’t change his request. There are some significant changes from last year to this year.