Showing results for 
Search instead for 
Did you mean: 

Oculus Quest 2: Build Failure | A failure occurred while executing

Level 3

I'm trying to get my Quest 2 connected to Unity on OSX; I followed the steps in this tutorial and everything seems to work, except for when I try to preview or build and run the sample project.

The scene shows up on my computer but not on my Quest (it just stays on the homepage)

My Quest is plugged in and recognized in Android Studio.

I get these notable errors:


UPDATE new error:

* What went wrong:
Execution failed for task ':launcher:packageRelease'.
> A failure occurred while executing$ActionFacade
> Failed to read key AndroidDebugKey from store "/Users/dovsherman/.android/debug.keystore": Invalid keystore format


error 1:
DllNotFoundException: UnityOpenXR assembly:<unknown assembly> type:<unknown type> member null)
UnityEngine.XR.OpenXR.OpenXRLoaderBase.Initialize () (at Library/PackageCache/com.unity.xr.openxr@1.4.2/Runtime/OpenXRLoader.cs:177)
UnityEngine.XR.Management.XRManagerSettings.InitializeLoaderSync () (at Library/PackageCache/
UnityEngine.XR.Management.XRGeneralSettings.InitXRSDK () (at Library/PackageCache/
UnityEngine.XR.Management.XRGeneralSettings.AttemptInitializeXRSDKOnLoad () (at Library/PackageCache/

error 2:
DllNotFoundException: AudioPluginOculusSpatializer assembly:<unknown assembly> type:<unknown type> member null)
ONSPAudioSource.OnBeforeSceneLoadRuntimeMethod () (at Assets/Oculus/Spatializer/scripts/ONSPAudioSource.cs:41)

error 3:
NullReferenceException: Object reference not set to an instance of an object
OculusSampleFrameworkUtil.HandlePlayModeState (UnityEditor.PlayModeStateChange state) (at Assets/Oculus/SampleFramework/Editor/OculusSampleFrameworkUtil.cs:47)
UnityEditor.EditorApplication.Internal_PlayModeStateChanged (UnityEditor.PlayModeStateChange state) (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:438)


Screen Shot 2022-08-29 at 4.45.29 PM.png