Saleh Refaai Saleh Refaai - 1 year ago 155
Java Question

Android can't extend Firebase Messaging Service

I am trying to implement Firebase Cloud Messaging in my application, I had implemented all settings to use this service but when I am trying to extends FirebaseMessagingService in my class it gives me error and it can't find it at all ,even I cant import as shown in the picture:

enter image description here

I had added all the code required:
I add this to app gradle

compile ''
apply plugin: ''

and this to the module gradle:

classpath ''

this is the manifest code:

<activity android:name=".MainActivity">
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
<action android:name=""/>
<action android:name=""/>

and I added the google json file to the app.
So if anybody can help me please

Answer Source

If you want to use messaging, you have to add the messaging module. Right now you only added the core module.

So go ahead and include

All the available modules can be found at the bottom of