Forum Discussion

UtopiaImmersive's avatar
4 years ago

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

  • 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 

     

    • beatsabergod135's avatar
      beatsabergod135
      Honored 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?

    • jtriveri's avatar
      jtriveri
      Adventurer

      I tried this but the error persists.

      "Gradle has exited unexpectedly."