Error building for Quest2: Querying the mapped value before task has completed is not supported

A few days ago I was having trouble building an Unreal project for my Quest 2 so I located and downloaded the OculusInputTest sample and got that to build, deploy and run on my Quest 2. After much struggle I was still unable to figure out how to create my own project that would deploy and run on my Quest. I tried installing different versions of JDK and Java and still couldn’t get it to work. Now I am not even able to get the OculusInputTest to build any more. I am hitting the error:

Querying the mapped value of map(java.io.File property(org.gradle.api.file.Directory, fixed(class org.gradle.api.internal.file.DefaultFilePropertyFactory$FixedDirectory, Z:\downloader_library\build\generated\ap_generated_sources\debug\out)) org.gradle.api.internal.file.DefaultFilePropertyFactory$ToFileTransformer@16ce4f9a) before task ‘:downloader_library:compileDebugJavaWithJavac’ has completed is not supported

More details are at:

Edit - may be related to