错误 getGoogleAppId 失败,状态为:10 Android KitKat

编程入门 行业动态 更新时间:2024-10-28 13:28:55
本文介绍了错误 getGoogleAppId 失败,状态为:10 Android KitKat - GCM 和 Google Drive的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我在三星 Galaxy S4 mini 上运行它.奇巧安卓版.

I am running this in a Samsung Galaxy S4 mini. KitKat Android.

在应用程序中,我使用 GCM 和 Google Drive API 进行消息传递.我认为我得到的错误来自 GCM,但我不确定.

In the application, I use both GCM for messaging, and Google Drive API. I think the error I am getting is from GCM, but I am not sure.

这是 LogCat:

I/PersonaManager﹕ getPersonaService() name persona_policy
I/GMPM﹕ App measurement is starting up
I/PersonaManager﹕ getPersonaService() name persona_policy
I/MainActivity﹕ onCreate
E/GMPM﹕ getGoogleAppId failed with status: 10
E/GMPM﹕ Uploading is not possible. App measurement disabled
I/PersonaManager﹕ getPersonaService() name persona_policy

我不明白的是 GMPM 在哪里启动?在我的代码中执行此操作之前,我不会激活 Google Drive 或 GCM.你可以看到 GMPM 甚至在我的 MainActivity 之前就启动了,所以我不知道如何调试它?

What I don't understand is where does GMPM start up? I don't activate Google Drive or GCM until after this in my code. You can see that GMPM starts even before my MainActivity, so I'm not sure how to debug it?

我的应用程序运行良好.它仍然连接到 GCM,仍然可以正常接收消息.仍然连接到 Google 云端硬盘.仍在检索文件.

My application is running fine. It still connects to GCM, still receives messages OK. Still connects to Google Drive. Still retrieves files.

但是这个错误让我很担心.有谁知道是什么原因造成的,或者我如何调试它?

But this error has me worried. Does anyone know what causes it, or how I can go about debugging it?

推荐答案

我在启用了 Google Drive 和 Google Analytics 的应用程序中看到了相同的错误日志.尽管出现了错误消息,但这些功能似乎运行良好.当我开始尝试添加 GCM 时,我配置并安装了一个新的 google-services.json 文件.之后错误信息消失了.尝试刷新您的 google-services.json 文件.这对@MrsEd 有效(请参阅上面关于问题的评论).

I was seeing the same error logs in an app that has Google Drive and Google Analytics enabled. Those capabilities appeared to be working fine, despite the error messages. When I started experimenting with addition of GCM, I configured and installed a new google-services.json file. The error messages disappeared after that. Try refreshing your google-services.json file. This worked for @MrsEd (see comment above on question).

这篇关于错误 getGoogleAppId 失败,状态为:10 Android KitKat - GCM 和 Google Drive的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-14 23:19:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/851443.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:状态   错误   getGoogleAppId   KitKat   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!