GradleRIO looks for WPILib x86 dependencies when I have installed x64 dependencies

This issue stumped for me some time as when I reinstalled VSC and WPILib, I still received the same WPILib header errors when I built. However, I discovered that GradleRIO was actually trying to find x86 libraries and failing as they were not installed on my x64 system. I fixed this problem by importing the project, but even new projects have this problem until I import them. How do I resolve this?

Did you use the WPILib installer? If you didn’t, its possible gradle is picking up a 32 bit jdk, which will cause wpilib to use 32 bit libraries. Definitely recommend using the installer, as it sets everything up correctly and solves many of these issue.

https://docs.wpilib.org/en/latest/docs/getting-started/getting-started-frc-control-system/wpilib-setup.html

Yes, all the installations have been done using the windows installer for WPILibs.

Can you post a copy of the build.gradle before and after importing?

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