Skip to content Skip to sidebar Skip to footer

Application Not Responding After Adding Firebase

I want to integrate Firebase into my Android application. When I do so, I need to add com.google.gms.google-services version 9 into my app gradle. After testing it a few times and

Solution 1:

You need this of your project grade

buildscript {
    // ...
    dependencies {
        // ...
        classpath 'com.google.gms:google-services:3.0.0'
    }
}

And this at the bottom of you module gradle

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'

In your code you don't have the apply plugin after your dependencies

Post a Comment for "Application Not Responding After Adding Firebase"