问题描述
限时送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:关键词]
发布评论