getGoogleAppId失败,状态为:10 Android KitKat - GCM和Google云端硬盘错误 [英] Error getGoogleAppId failed with status: 10 Android KitKat - GCM and Google Drive

查看:127
本文介绍了getGoogleAppId失败,状态为:10 Android KitKat - GCM和Google云端硬盘错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在三星Galaxy S4 mini上运行这个程序。 KitKat Android。



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



这里是LogCat:



<$ ()名称persona_policy
I / GMPM:应用程序测量正在启动
I / PersonaManager:getPersonaService()名称persona_policy
I / PersonaManager:getPersonaService / MainActivity:onCreate
E / GMPM:getGoogleAppId失败,状态为10
E / GMPM:无法上传。应用程序测量被禁用
我/ PersonaManager:getPersonaService()名称persona_policy

了解GMPM在哪里启动?在我的代码中,我没有激活Google Drive或GCM。你可以看到GMPM甚至在我的MainActivity之前就开始了,所以我不知道如何调试它?

我的应用程序运行良好。它仍然连接到GCM,仍然收到消息确定。仍然连接到Google云端硬盘。仍然检索文件。



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

我看到相同的错误日志已启用Google云端硬盘和Google Analytics的应用。尽管出现错误消息,但这些功能似乎工作正常。当我开始尝试添加GCM时,我配置并安装了一个新的 google-services.json 文件。之后,错误消息消失。尝试刷新您的 google-services.json 文件。这适用于@MrsEd(请参阅上面的问题评论)。


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

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.

Here is 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

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?

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?

解决方案

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云端硬盘错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆