OVRBuild Error in Unity: Gradle bug Stopping Any Quest Development (both 2018 and 2019 Unity)
Hi, I'm just getting started with Quest development on Unity. But I can't get through the initial tutorial / sample scenes. I get the same error starting with a "from scratch" project. All I do is add the Oculus integration and try and build one of the sample scenes to the device. Both 2018 and 2019. The bug in Unity shows up as: Gradle has exited unexpectedly. UnityEngine.Debug:LogError(Object) OculusBuildApp:BuildGradleProject() (at Assets/Oculus/VR/Editor/OVRBuild.cs:385) OculusBuildApp:OVRBuildRun() (at Assets/Oculus/VR/Editor/OVRBuild.cs:285) <>c:<StartBuildAndRun>b__29_0() (at Assets/Oculus/VR/Editor/OVRBuild.cs:261) System.Threading.ThreadHelper:ThreadStart() But the bug really comes down to the following code from OVRBuild: while (apkOutputSuccessful == null) { if (timeout.ElapsedMilliseconds > 50000) { UnityEngine.Debug.LogError("Gradle has exited unexpectedly."); apkOutputSuccessful = false; } System.Threading.Thread.Sleep(100); } The problem is that apkOutputSuccessful is already false before the loop is ever reached. Help!! I can't even get started with Quest/Unity dev while this is going on :( Thanks, Dave G2.4KViews1like4CommentsMobile SDK Setup
Hi everyone, I'm trying to follow the mobile SDK guide but I'm having trouble building the samples. I'm not super familiar with Gradle and other Android shenanigans so I'm completely lost. I'm basically trying to follow the "Android Studio Basics" part but I'm never asked if I want to use the Gradle wrapper. ( Step 3 ). I tried to keep going but I'm almost immediately hit with a "Task 'wrapper' not found in project", which isn't surprising. I've tried to Google this and figure out what's going on but no luck so far. What am I missing? Thanks in advance for your help! EDIT: Using build.bat from VrCubeWorld_Framework\Projects\Android it works. My Android Studio / Gradle integration is still messed up though. EDIT 2: You probably shouldn't do that because it doesn't make much sense, but I copied and pasted the "gradle" folder from the root of the VR Samples folder inside VrCubeWorld_Framework\Projects\Android and now it works. ¯\_(ツ)_/¯2.8KViews1like4CommentsGradle build faild and more
Hi, I hope this is the right place to get help. I'm new to Unity and developing and have a problem with my project for the Oculus Quest. In my project I have five similar scenes. Each scene contains a different 360° panoramic Video (I used this guide: https: //docs .unity3d. com/Manual/VideoPanoramic.html). In each scene there are two UI Buttons that, when looked at for three seconds, takes the user to the next/previous scene (so A<->B<->C<->D<->A). When i try to build and run on the Quest i get an error message: Gradle build failed. I have attached the whole Error message. I'm using Unity 2019.3.11f1. I don't know what Oculus SDK i'm using and how/where to look that up. However I downloaded the use the Oculus integration 17.0. from the Asset Store. Anyone have an idea what causes the problem and how to fix it? The wired thing is that I have successfully build and run each scene individually. Then I have tried to build and run two of the scenes together. This was always sucessfull (at least the console said it was), but with one scene the app would not start/immediately crash on startup. (I have attached the logcat also) Are those two problems related? Can someone help me with the problem or redirect me to a place where i might find help? Many thanks in advance!640Views0likes0Comments