•   over 2 years ago

Geospatial Creator Project - Android Build stuck at "Building Scene"

Hello, I am testing Geospatial Creator Sample Application with the dummy location, I have added Map Tiles API Key and building Android Build. But the build gets stuck on "Building Scene". And the build never gets complete. Please help with this.

  • 4 comments

  • Manager   •   over 2 years ago

    Hi there!

    Assuming you are building for Android, it looks like there may be an issue with the Android Dependency Resolver, which downloads ARCore's required Android-specific dependencies. Please try the following:
    1) Open Assets > External Dependency Manager > Android Resolver > Settings. Uncheck "Enable Auto-Resolution" and "Enable Resolution On Build", and enable "Verbose Logging".
    2) Rebuild your app. You should get past the "Building Scene 0:..." step.

    If your app crashes on launch, check the logcat output. If you have an error that matches "ArStatusErrorSpace::AR_ERROR_GOOGLE_PLAY_SERVICES_LOCATION_LIBRARY_NOT_LINKED":
    1) Re-resolve the dependencies: Assets > External Dependency Manager > Android Resolver > Resolve". You should see a dialog indicating about 32 .aar files have been added to your Assets/Plugins/Android folder.
    2) Rebuild the app again. It should work as intended. Any other error is unlikely to be related to this issue.

    If that works, there was likely a transient error with the resolver. We recommend re-enabling both "Enable Auto-Resolution" and "Enable Resolution On Build" settings in the near future. If you do not re-enable it, you may need to follow the build + resolve + build again steps frequently to re-resolve the dependencies.

    If it does not work, please share any error in the Unity console, specifically if there's any during the "Resolve" action (Step 3).

  •   •   over 2 years ago

    Hi there, thank you so much. I unchecked "Enable Auto-Resolution" and "Enable Resolution On Build", and enabled "Verbose Logging" and it could help in building the APK. Now but, I see the black screen with the message on the bottom left "Initializing Geospatial functionalities." and nothing happens. I have added "AR Background Render Feature" in the Universal Renderer. Can you help me with this?

  •   •   over 2 years ago

    Hello, I have added "AR Background Render Feature" in the Universal Renderer still the Android Application built, shows black screen with the message in the bottom left "Initializing Geospatial Functionalities". Can anyone help me get rid of this and make the app work?

  • Manager   •   over 2 years ago

    Please double-check the authentication strategy for the Geospatial API at Project Settings > XR Plugin-in Management > ARCore Extensions. The strategy must be configured in this panel, as well as on the Google Cloud Platform console. See instructions here: https://developers.google.com/ar/develop/unity-arf/geospatial/enable-android#set_up_authorization

    If you have further questions, we will be hosting Office Hours on our Discord channel tomorrow, 10/31 at 11 AM PT. Here is the link to join the #Googles-Immersive-Geospatial-Challenge channel: https://discord.com/invite/google-dev-community

Comments are closed.