CommandInvokationFailure: Gradle build failed.

Whenever I try to build my project for Oculus Go, I still get the same error “CommandInvokationFailure: Gradle build failed.”
I tried to follow the solutions on this post:
https://forum.unity.com/threads/commandinvokationfailure-gradle-build-failed.479460/” but none of the proposed solutions works.
Is there anyone who has had the same problem and managed to solve?

Okay, i solved it.
In my project I had packages with codes that I no longer needed, so I eliminated them and kept only the materials and codes I needed.
If it does not work, try to create a new project and copy only the elements you need into the Asset.

Yup, that’s it…