Forum Discussion
UtopiaImmersive
5 years agoProtege
Gradle Build Error
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.
3 Replies
Replies have been turned off for this discussion
- UtopiaImmersiveProtege
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
- beatsabergod135Honored Guest
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?
- jtriveriStart Partner
I tried this but the error persists.
"Gradle has exited unexpectedly."
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device