Add Firebase to Android Project

Asked

Viewed 252 times

0

I did everything you asked on the Firebase website, but when I click Sync on Gradle inside the project, before finishing it appears an ERROR, as you can see below; ERRO Gradle Android Studio

Please help me out!

  • Could put the image error as a text in the question?

  • Welcome Waldécio, please, we ask that read this article, edit your question so we can help you! Thank you very much!

1 answer

2

According to the error, is missing dependency on your Gradle. To solve the problem, add dependencies to basic libraries needed for the services that is lacking at the beginning of your Gradle. Below is an example:

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

Soon after in their dependencies include the firebase-messaging. Behold:

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

For more details, see how configure a Firebase Cloud Messaging client app on Android and the basic instructions of Google services Plugin.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.