cancel
Showing results for 
Search instead for 
Did you mean: 

Gradle Build Error

UtopiaImmersive
Protege

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 3

UtopiaImmersive
Protege

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 

 

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?

I tried this but the error persists.

"Gradle has exited unexpectedly."