What went wrong:
A problem occurred configuring root project ‘Thing’.
Could not resolve all files for configuration ‘:classpath’.
Could not resolve edu.wpi.first:native-utils:2022.8.2.
Required by:
project : > edu.wpi.first.GradleRIO:edu.wpi.first.GradleRIO.gradle.plugin:2022.4.1 > edu.wpi.first:GradleRIO:2022.4.1
No matching variant of edu.wpi.first:native-utils:2022.8.2 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute ‘org.gradle.plugin.api-version’ with value ‘7.3.3’ but:
- Variant ‘apiElements’ capability edu.wpi.first:native-utils:2022.8.2 declares a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
- Other compatible attribute:
- Doesn’t say anything about org.gradle.plugin.api-version (required ‘7.3.3’)
- Variant ‘runtimeElements’ capability edu.wpi.first:native-utils:2022.8.2 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
- Other compatible attribute:
- Doesn’t say anything about org.gradle.plugin.api-version (required ‘7.3.3’)
I cant find any of the stuff its referring to is there any sort of quick fix can I do?
Your problem is more fundamental then pushing the code. You need to step back to the steps before that.
How did you install the WPILib development environment? Please link the instructions you followed.
Where did you get the project?
Why is the project using a 2022 version of WPILib?
Well, the development environment came preinstalled, and the laptop it’s on was given to me by the FIRST robotics team at my school. Before you ask if I can just get help from the other programmers, there are none. At least none that show up.
2.If by the project you’re referring to the template, that is from this sort of addon they have on VScode whether I should call that WPILib or not I don’t know
I didn’t think there would be any significance to versions other than just everything running smoother and faster.
these are the instructions you can also look at the rest of first through this