blackwolf
blackwolf

Reputation: 927

Where to put google-services.json file into eclipse project?

I'm trying to implement the new GCM client on Android.

At one point, you have to enable Google Services for the app. After enabling Cloud Messaging you have to download the file google-services.json and put it in the app/ or mobile/ directory. The problem is that in my eclipse project this directories doesn't exist.

enter image description here

So my question is: where do I have to put this file?

Upvotes: 13

Views: 9066

Answers (1)

blackwolf
blackwolf

Reputation: 927

It seems that for eclipse that file is not necessary. I've managed to make the client work without it.
Just follow the steps from Implementing GCM Client on Android and skip the part with the google-services.json file.

UPDATE: For Android Studio the instructions are pretty clear. The file must be put in the app/ directory of your project: https://developers.google.com/cloud-messaging/android/client#add-config

P.S. Any vote down should go along with the reason specified in a comment, or not? :)

Upvotes: 3

Related Questions