Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not resolve symbol "FirebaseMessagingService"

I'm tring to integrate Firebase Cloud Messaging in android app but facing problem to extend FirebaseMessagingService in our class.

It displaying Can not resolve symbol "FirebaseMessagingService"

app.gradle

compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.google.firebase:firebase-database:9.8.0'

and also add google-service.json file

like image 789
Garg's Avatar asked Dec 16 '16 14:12

Garg's


Video Answer


1 Answers

you also need to add

compile "com.google.firebase:firebase-messaging:$PLAY_SERVICES_VERSION"
like image 86
John O'Reilly Avatar answered Oct 17 '22 16:10

John O'Reilly