Skip to content Skip to sidebar Skip to footer

Conflict With Firebase 11.8.0 And Google-services Plugin 3.1.2

I have an apparent conflict with firebase 11.8.0 and google-services plugin 3.1.2. The build fails recommending that I use version 11.4.2 of firebase instead. Relevant extracts of

Solution 1:

The solution is to move this line to the bottom of the app build.gradle file (it shouldn't be at the top):

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

This is specified in the documentation:

https://firebase.google.com/docs/android/setup

Then, in your module Gradle file (usually the app/build.gradle), add the apply plugin line at the bottom of the file to enable the Gradle plugin:

apply plugin: 'com.android.application'

android {
  // ...
}

dependencies {
  // ...
  compile 'com.google.firebase:firebase-core:11.8.0'// Getting a "Could not find" error? Make sure you have// added the Google maven respository to your root build.gradle
}

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

Post a Comment for "Conflict With Firebase 11.8.0 And Google-services Plugin 3.1.2"