Why do we need to use the google-services plugin in BOTTOM for the Firebase SDK?

The Firebase SDK page says:

apply plugin: 'com.android.application'

android {
    // ...
}

dependencies {
  // ...
  compile 'com.google.firebase:firebase-core:9.0.2'
}

// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'

Why? Does it have an order?

+4
source share
1 answer

This is because the plugin helps you manage the dependencies and order of events that Gradle uses to create the project.

firebase, . Firebase Play Services. , , Google Services , . , ( ) .

, , . , .

+4

All Articles