Android specific configuration

  • In your root-level (project-level) gradle file (<project>/build.gradle), add the Google services plugin as a dependency:
dependencies {
  ...
  classpath 'com.google.gms:google-services:4.3.15'
  ...
}
  • In your module (app-level) gradle file (usually <project>/<app>/build.gradle), add the Google services plugin:
plugins {
  ...
  id 'com.google.gms.google-services'
  ...
}

or

apply plugin: 'com.google.gms.google-services'