Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- In your root-level (project-level) Gradle file (build.gradle), add rules to include the Google Services plugin. Check that you have Google's Maven repository, as well.
- */
- buildscript {
- repositories {
- // Check that you have the following line (if not, add it):
- google() // Google's Maven repository
- }
- dependencies {
- // ...
- // Add the following line:
- classpath 'com.google.gms:google-services:4.3.0' // Google Services plugin
- }
- }
- allprojects {
- // ...
- repositories {
- // Check that you have the following line (if not, add it):
- google() // Google's Maven repository
- // ...
- }
- }
- /*
- In your module (app-level) Gradle file (usually app/build.gradle), add a line to the bottom of the file.
- */
- apply plugin: 'com.android.application'
- android {
- // ...
- }
- // Add the following line to the bottom of the file:
- apply plugin: 'com.google.gms.google-services' // Google Play services Gradle plugin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement