Search Unity

Unity 2020.3.25f1 with Oculus Integration 35.0 Build failed

Discussion in 'Asset Bundles' started by jacksu_unity, Jan 4, 2022.

  1. jacksu_unity

    jacksu_unity

    Joined:
    Nov 27, 2021
    Posts:
    2
    It used to be working fine just several hours ago, but suddenly, probably with the upgrade of "Update Spatializer Plugins", the Build keep failing.

    I have reimported Oculus Integration, rebooted machine, no use.

    Any suggestion? Thanks.


    BuildFailedException: Oculus Utilities Plugin with OpenXR only supports XR Plug-in Managmenent with Oculus XR Plugin.
    OVRGradleGeneration.OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at Assets/Oculus/VR/Editor/OVRGradleGeneration.cs:141)
    UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass15_0.<OnBuildPreProcess>b__1 (UnityEditor.Build.IPreprocessBuildWithReport bpp) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:426)
    UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List`1[T] oneInterfaces, System.Action`1[T] invocationOne, System.Collections.Generic.List`1[T] twoInterfaces, System.Action`1[T] invocationTwo, System.Boolean exitOnFailure) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:406)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)
     
  2. trzy

    trzy

    Joined:
    Jul 2, 2016
    Posts:
    128
    Same issue here with Unity 2021.2.7f1
     
  3. SeanBannister

    SeanBannister

    Joined:
    Jul 13, 2020
    Posts:
    23
    Software development teams should really have documentation people right the error messages and not the software developers. I had to read the code before the error and trace back what was happening.

    This is due to OVRPlugin using the experimental OpenXR integration rather than the older integration. There's documentation on how to switch between the two here.

    But basically in unity go to you tools menu.... Oculus > Tools > OpenXR > Switch to Legacy OVRPlugin.