arcore-unity-extensions icon indicating copy to clipboard operation
arcore-unity-extensions copied to clipboard

Unity 2021.3.9f1 LTS Gradle file in plugins directory gets reset, resulting in black screen for Geospatial AR app.

Open mpriem opened this issue 3 years ago • 1 comments

I've been working on a GeoSpatial Android ARCore App using:

  • Unity 2021.3.9f1 LTS
  • AR Foundation 4.2.6
  • ARCore XR 4.2.6
  • ARCore Extensions 1.33.0

When building the app, randomly the mainTemplate.gradle file in the plugins directory gets "reset". It is suddenly missing the Android Play store location dependencies Google.XR.ARCoreExtensions.Editor.Internal.ExternalDependencyResolverHelper.RegisterAndroidDependencies writes to it.

This happens even though I'm not touching any project/player settings; just making code changes to scripts or modifying the scene hierarchy.

The result is a black screen and the following errors in the device logs:

10-12 15:47:41.328 31913 31948 E native  : E0000 00:00:1665582461.328782   31948 session_manager.cc:137] ARPresto::Google Play Services location library is not linked. Ensure to include Geospatial dependencies in the ARCore Extensions project settings.
10-12 15:47:41.329 31913 31948 E native  : E0000 00:00:1665582461.329197   31948 status.cc:162] FAILED_PRECONDITION: 
10-12 15:47:41.329 31913 31948 E native  : ARCoreError: third_party/arcore/ar/geo/geoar_module.cc:545
10-12 15:47:41.329 31913 31948 E native  : GeoAR components not configured. [type.googleapis.com/util.ErrorSpacePayload='ArStatusErrorSpace::AR_ERROR_ILLEGAL_STATE']
10-12 15:47:41.329 31913 31948 E native  : === Source Location Trace: ===
10-12 15:47:41.329 31913 31948 E native  : third_party/arcore/ar/core/status.cc:171
10-12 15:47:41.329 31913 31948 E native  : third_party/arcore/ar/geo/geoar_module.cc:545
10-12 15:47:41.329 31913 31948 E native  : 

It is very annoying as I need to keep updating the files every time it happens.

Is this a know issue? Any way to prevent this from happening?

mpriem avatar Oct 12 '22 14:10 mpriem

In the hierarchy we will have ARCore Extension in that we will have a field as ARCore Extension Config in that field we have to assign a configuration whatis available ,double click that and you will get four fields as disabled in that in geospatial make it to enabled.

LennyJes avatar May 18 '23 10:05 LennyJes