Add Firebase to Android Project [closed]

0

I did everything I asked for in the Firebase website, but when I click Sync on Gradle inside the project, before finishing it it shows an ERROR, as you can see below;

Please help me!

    
asked by anonymous 24.12.2016 / 20:55

1 answer

2

According to the error, dependency is missing on your Gradle . To resolve the issue, add dependencies to basic libraries needed for the services you are missing at the beginning of your Gradle . Here is an example:

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

Soon afterwards in your dependencies include firebase-messaging . See:

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

For more details, see set up a Firebase Cloud Messaging client application on Android and the basic instructions for Google services Plugin .

    
24.12.2016 / 22:48