Android specific configuration

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