google-ar / arcore-unity-extensions

Google ARCore Extensions and Geospatial Creator for Unity's AR Foundation
Other
353 stars 96 forks source link

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

Open mpriem opened 2 years ago

mpriem commented 2 years ago

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

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?

LennyJes commented 1 year ago

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.