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!
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 .