Error getGoogleAppId failed with status: 10 Android KitKat - GCM and Google Drive

MarkJoel60 picture MarkJoel60 · Nov 4, 2015 · Viewed 17.3k times · Source

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?

Answer

Bob Snyder picture Bob Snyder · Nov 30, 2015

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).