oculus-samples / Unity-SharedSpatialAnchors

Unity-SharedSpatialAnchors was built to demonstrate how to use the Shared Spatial Anchors API, available in the Meta XR Core SDK for the Unity game engine.
MIT License
119 stars 45 forks source link

Trying to build the project, but the build cancels while doing some gradle stuff #11

Closed lucaremberg closed 1 year ago

lucaremberg commented 1 year ago

Hi, I am getting a build failure with the text: "A failure occured while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade See the console for details.". The details in the console saying this: Note: Z:\Unity-SharedSpatialAnchors-main\Temp\gradleOut\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

BUILD FAILED in 25s Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Maybe someone here can help me solve this problem.

Yarwad commented 1 year ago

Getting the same issue

SteveOnorato commented 1 year ago

In Unity, navigate to Oculus / Platform / Edit Settings. Replace the placeholder Bundle Identifier "com.package.id" with a valid and unique Android package name like "com.steveonorato.ssa_sample" (following the naming rules at https://developer.android.com/studio/build/configure-app-module#set_the_application_id).

Sorry, this seems to be missing from the current documentation at https://developer.oculus.com/documentation/unity/unity-ssa-sf/ (there should be some improvements to that page coming shortly).

lucaremberg commented 1 year ago

thx for the help. now the bundle is building ^^

SteveOnorato commented 1 year ago

The documentation has been updated. Thanks for helping the developer community by reporting this!