<br />

As of version 15.0.0, the Google Play services libraries are maintained
individually, allowing the development teams for each library to ship fixes and
enhancements independently and more quickly. You can track the latest releases
for [Google Play services](https://developers.google.com/android/guides/releases.md.txt) and [Firebase](https://firebase.google.com/support/release-notes/android).

## Strict version matching

A version of one library might be incompatible with a specific version of
another library. To help handle this situation, several Gradle plugins provide
guidance for these version mismatches. The logic in these plugins is similar to
the logic in a `failOnVersionConflict()` rule for a [`ResolutionStrategy`](https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.ResolutionStrategy.html)
that's associated with Google Play services and Firebase dependencies.

### Google services Gradle plugin

The [Google services Gradle plugin](https://firebase.google.com/docs/android/google-services-plugin-and-file) (`google-services`) checks for compatible
versions of Google Play services and Firebase libraries.

### Standalone version matcher plugin

If you're not using the `google-services` Gradle plugin, but you still want
strict version checking of your dependencies, you can apply the
`strict-version-matcher-plugin`. You can view this
[plugin's code on GitHub](https://github.com/google/play-services-plugins/tree/master/strict-version-matcher-plugin).

The following code snippet shows how to add the Gradle plugin:

### Kotlin DSL

build.gradle.kts

```kotlin
plugins {
    id("com.google.android.gms.strict-version-matcher-plugin")
}
```

### Groovy DSL

build.gradle

```groovy
apply plugin: 'com.google.android.gms.strict-version-matcher-plugin'
```

To use this plugin, you also need to add the following to your buildscript
classpath, obtained from [Google's Maven repository](https://maven.google.com/web/index.html#com.google.android.gms:strict-version-matcher-plugin):

### Kotlin DSL

build.gradle.kts

```kotlin
classpath("com.google.android.gms:strict-version-matcher-plugin:1.2.4")
```

### Groovy DSL

build.gradle

```groovy
classpath 'com.google.android.gms:strict-version-matcher-plugin:1.2.4'
```