Skip to content

Gradle conflict when using OpenXR #27

@Brendan-aura

Description

@Brendan-aura

PICO Unity Integration SDK 3.3.0 (Unity thinks it's 3.3.1 though)
Unity 6.2 (6000.2.8f1)

The docs say when setting the XR plug-in settings "If you need to use the Unity OpenXR Plugin, enable the Unity OpenXR Plugin only", but this doesn't work. When the PICO Unity Integration SDK package is installed in any project and the OpenXR plugin provider is enabled and the PICO plugin provider disabled, building fails with a gradle conflict 100% of the time. This means that if we want to use the PICO Unity Integration SDK we can't have any other XR build targets in the project at all.

Unity seems to be attempting to include the PICO version of the OpenXR loader in the build even though it's disabled, causing the build to fail with a MergeNativeLibsTask gradle build error. It's attempting to load both jetified-loader-1.1.0.UnitySDK\jni\arm64-v8a\libopenxr_loader.so and jetified-openxr_loader\jni\arm64-v8a\libopenxr_loader.so at the same time. One of these is the Unity OpenXRLoader and one is yours from this SDK.

PICO-Unity-OpenXR-SDK still works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions