Skip to content

An error occurs when building Android for 2022.3.62f2. #520

@lsbslowlycrew-spec

Description

@lsbslowlycrew-spec

SPECIFIC ISSUE ENCOUNTERED

I’m developing an Android app with Unity 2022.3.62f2.
After updating cardboard_xr_unity to 1.31.0 and building, a Gradle build error occurs.
The error details are as follows:

/==== error start =====/

ERROR:xxx/.gradle/caches/transforms-3/a5d277e50699cd47e756d4c4a066f1f7/transformed/jetified-GfxPluginCardboard-runtime.jar: D8: java.lang.NullPointerException

FAILURE: Build completed with 2 failures.

Task failed with an exception.

What went wrong:
Execution failed for task ':launcher:dexBuilderRelease'.
Could not resolve all files for configuration ':launcher:detachedConfiguration4'.
Failed to transform jetified-GfxPluginCardboard-runtime.jar to match attributes {artifactType=ext-dex-dexBuilderRelease, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
Execution failed for DexingExternalLibArtifactTransform: xxx/.gradle/caches/transforms-3/a5d277e50699cd47e756d4c4a066f1f7/transformed/jetified-GfxPluginCardboard-runtime.jar.
Error while dexing.

Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
/===== error end =====/

cardboard_xr_unity is installed via UPM.

I understand that Unity 2022.3 is not officially supported, but this application has already been released, and it’s difficult to upgrade to Unity 6000 immediately.
Do you know how to resolve the build error?

VERSIONS USED

What version of Google Cardboard are you using?
Cardboard SDK/Cardboard XR Plugin 1.31.0

If you are using Cardboard XR Plugin:

  • What version of Unity are you using?
    2022.3.62f2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions