Zach Zach - 1 year ago 771
Android Question

GoogleService failed to initialize

I am using google Maps in my android application. I have created the key and added necessary permissions in manifest file. But soon I start the application I get this message in debugger:

GoogleService failed to initialize, status: 10, Missing an expected
resource: 'R.string.google_app_id' for initializing Google services.
Possible causes are missing google-services.json or gradle plugin.

I am not sure whats wrong. The Map is working fine and I can use it without any issues. My gradle file has this entry:

compile ''

What is it complaining about and how do I alleviate it?

Answer Source

You need to place the configuration file generated by this link, it is the 2nd step in this link

And then as quoted in step 3

Copy the google-services.json file you just downloaded into the app/ or mobile/ directory of your Android

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download