09-10-2021 02:19 PM
I have built my project once and when i try to build again i get a Gradle Error(“ Gradle has edited unexpectedly”). The project ask builds successfully but when i try to build to Quest 2 it creates the previously stated Error.
09-10-2021 07:57 PM
Solution
Good news if you are encountering this issue: you do not have to change anything to your project.
Steps: Go to Files C: Users \ Your Name \ .gradle and delete the entire .gradle folder. I think this clears any cashed build info to your project since a possible reason for the Gradle Error is having duplicated apk info.(https://docs.unity3d.com/Manual/android-gradle-troubleshooting.html)
The only drastic change to the project that probably caused this: Upload build to App Lab with OVR Platform Tool
12-31-2022 06:41 AM
When I try to delete the file, it says that it's in use by another program, but I don't have Unity open. Is there a way to force-delete it?
02-07-2023 03:14 PM
I tried this but the error persists.
"Gradle has exited unexpectedly."