【发布时间】:2015-11-04 20:47:07
【问题描述】:
我在三星 Galaxy S4 mini 上运行它。奇巧安卓。
在应用程序中,我使用 GCM 进行消息传递和 Google Drive API。我认为我得到的错误来自 GCM,但我不确定。
这里是 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 之前就开始了,所以我不知道如何调试它?
我的应用程序运行良好。它仍然连接到 GCM,仍然可以正常接收消息。仍然连接到 Google Drive。仍在检索文件。
但是这个错误让我很担心。有谁知道是什么原因造成的,或者我该如何调试它?
【问题讨论】:
-
我在启用了 Google Drive 和 Google Analytics 的应用中看到了相同的错误日志。尽管有错误消息,但这些功能似乎运行良好。当我开始尝试添加 GCM 时,我配置并安装了一个新的
google-services.json文件。之后错误消息消失了。您可以尝试刷新文件,看看是否有影响。 -
谢谢 - 这对我有帮助,它修复了我刚刚使用最新的 google-services.json 时出现的错误。
标签: android android-studio google-cloud-messaging google-drive-android-api