Google 地图无法更新 com.google.android.libraries.consentverifier 的本地快照

Bit*_*ti4 9 android google-maps

我的 Google 地图应用程序出现以下错误

Unable to update local snapshot for com.google.android.libraries.consentverifier#com.example.my_app, may result in stale flags.     
java.util.concurrent.ExecutionException: java.lang.SecurityException: GoogleCertificatesRslt: not allowed: pkg=com.example.my_app, sha256=[098355cb7da096c1c7d98fa16db67e136db0a35aa540229aec9f8801f6355789], atk=false, ver=223017031.true (go/gsrlt)
                at ahy.s(:com.google.android.gms.dynamite_mapsdynamite@223017068@22.30.17 (100700-0):3)
                at ahy.get(:com.google.android.gms.dynamite_mapsdynamite@223017068@22.30.17 (100700-0):2)
                at aji.g(:com.google.android.gms.dynamite_mapsdynamite@223017068@22.30.17 (100700-0):2)
                at xy.d(:com.google.android.gms.dynamite_mapsdynamite@223017068@22.30.17 (100700-0):1)
                at ya.run(:com.google.android.gms.dynamite_mapsdynamite@223017068@22.30.17 (100700-0):0)
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
Run Code Online (Sandbox Code Playgroud)

昨天工作正常,但现在在模拟器上启动应用程序时,地图是空白的,其余组件(如按钮)完好无损。我没有更改代码中的任何内容、所有依赖项,并且我的 API 密钥是正确的。

可能是什么问题呢?

小智 0

我有一个类似的问题,我通过这篇文章解决了:

SecurityException - GoogleCertificatesRslt:不允许

希望对你有帮助 :)

  • 通过额外的支持信息可以改进您的答案。请[编辑]添加更多详细信息,例如引文或文档,以便其他人可以确认您的答案是正确的。您可以[在帮助中心](/help/how-to-answer)找到有关如何写出好的答案的更多信息。 (5认同)