We recently got swerve drive and we are testing sample codes to see which works best. This code is from 0 to Autonomous and is from a past year. With the new 2023 Wpi lib changing we had to build it and I believe the gradle is the problem but not sure. Any help is appreciated thank you.
Did you use the project importer to update your project? You can’t just change the version of gradlerio in build.gradle, that will not work. Especially from 2021 (There was a major rewrite in 2022)
Yes we just imported it using the import tool but the code is still written in the past versions of libraries.
The error message you got occurs when you update the version in build.gradle without running the importer. If you run the importer, you will get different errors because you need to update the code to match the 2023 WPILib libraries. You may find it easier to start with a different swerve project that is compatible with 2023 WPILib from the start.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.