Reputation: 1074
Is google-service.json now obligatory ?
In my android app I have added google map and gcm. Now I'm migrating project from eclipse to android studio and I have some little problem.
I have already created a key for gcm, how can I create manually the google-service.json starting from my existing key ?
Another question is : Initially to add the google play services into my app I followed this official guide : https://developers.google.com/android/guides/setup
But without this code lines (that I found on stackoverflow):
apply plugin: 'com.google.gms.google-services'
classpath 'com.google.gms:google-services:1.5.0-beta2'
the compiler had not found the play service. Why google doesn't tell nothing about this code line ?
Upvotes: 2
Views: 1000
Reputation: 22193
From docs I'd say yes, it's needed. If you follow the line guide you can download a json file even you have already created your project in the developer console. There is a "configuration file" button here. In addition the lines you see "apply plugin" and "classpath" are only for Android Studio (the official IDE). Using the setup suggested it's really easy to setup the project with Android Studio.
Upvotes: 2