首页 > 解决方案 > Unity 中的 Google 持久云锚点:错误缺少 API 密钥

问题描述

问题

我正在尝试在 Unity 中托管持久的谷歌云锚点。为此,我使用了无密钥身份验证并按照 google 开发人员指南执行了所有步骤:[google developer guide for persistent cloud anchors in Unity][1]

我正在使用 Unity Editor 2020.2.3f1、ARFoundation 和 Firebase 7.2.0。

但我仍然收到以下错误:

Error ARCore-AnchorServiceClient Error calling CreateAnchor RPC: 
Error ARCore-AnchorServiceClient grd: PERMISSION_DENIED: The request is missing a valid API key.
at grb.i(PG:1)
at hem.c(PG:3)
at guh.run(PG:1)
at guj.e(PG:4)
at guj.c(PG:1)
at gtc.a(PG:3)
at gtv.run(PG:2)
at hav.run(PG:2)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)

有没有办法在 Unity 中使用 ARFoundation 托管持久云锚?[1]:https ://developers.google.com/ar/develop/unity-arf/cloud-anchors/developer-guide-android#keyless-authentication

标签: c#firebasevisual-studiounity3darcore

解决方案


推荐阅读