Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find symbol "messaging" in com.google.firebase.messaging.FirebaseMessagingService

I am trying to access FirebaseMessagingService using firebase 9.2.1 library. I have successfully created a project then download the JSON file. I have finally integrated this JSON file with my project. FirebaseInstanceIDService is running fine but showing error with FirebaseMessagingService. So i checked my project folder inside android studio. Then i find that firebase-messaging 9.2.1 library is missing. How can i resolve this issue. I have already upgraded all of the SDK libraries. Please help me to fix this issue.

enter image description here

enter image description here

enter image description here

like image 504
Shravan Jain Avatar asked Jul 28 '16 08:07

Shravan Jain


1 Answers

You need to add Firebase Messaging to your dependencies:

compile 'com.google.firebase:firebase-messaging:9.2.1'

Setup for Firebase Cloud Messaging is explained in the documentation.

like image 65
Bob Snyder Avatar answered Oct 24 '22 14:10

Bob Snyder