google-ar / arcore-android-sdk

ARCore SDK for Android Studio
https://developers.google.com/ar
Other
4.95k stars 1.22k forks source link

Cloud anchors not configured #1173

Open Xylella opened 3 years ago

Xylella commented 3 years ago

I'm making my own ap based on the SDK demo app, but when I try to resolve an anchor id gives me this error:

2020-12-15 12:45:27.019 12668-12668/demo E/native: status.cc:161 FAILED_PRECONDITION: 
    ARCoreError: third_party/arcore/ar/core/session.cc:3601
    ARCoreError: third_party/arcore/ar/persistence/cloud_anchor_manager.cc:383
    Anchor Hosting is not configured. [type.googleapis.com/util.ErrorSpacePayload='ArStatusErrorSpace::AR_ERROR_CLOUD_ANCHORS_NOT_CONFIGURED']

Here the log

I set the session overriding the getSessionConfig method in ARFragment, like in this tutorial. If I print session.getConfig().getCloudAnchorMode() before the resolveCloudAnchor call the result is ENABLED. What could the problem be?

VERSIONS USED

ghost commented 3 years ago

Did you find a solution to this?

Nevazhnovu commented 2 years ago

Did you find a solution to this?