Getting error when building - Failed to generate ARCore reference library

Here’s the official error:

Failed to generated ARCore reference image library ‘NewLibrary’
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Using Unity 2020.2.1f1

ARCore XR Plugin version 4.0.12
AR Foundation version 4.0.12
XR Plugin Management 4.0.1

I went as far as to use the images that ARCore had in their sample projects, even thought the images I was using originally worked fine with Vufoira. Any ideas on how to solve this?

Is it possible the version of Unity we’re using is wrong? Should I be using a newer/older version?

The issue with generating reference image library should be fixed in ARCore 4.1.7. Could you please confirm it?
“Improve handling for spaces in pathnames when building the reference image library which may cause the build to fail.”
https://docs.unity3d.com/Packages/com.unity.xr.arcore@4.1/changelog/CHANGELOG.html#417---2021-03-31