Here is my project build.gradle:
buildscript {
...
dependencies {
...
classpath \'com.google.gms:google-services:3.1
You must add one dependencies in your build.gradle(Project:project_name)
classpath 'com.google.gms:google-services:3.1.0'
And add in your build.gradle(build.gradle:Module app)
apply plugin: 'com.google.gms.google-services'
dependencies {
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
}
apply plugin: 'com.google.gms.google-services'
You only set apply plugin: 'com.google.gms.google-services'
in the app module, and in no other modules.