Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Class 'MyFirebaseMessagingService' is not abstract and does not implement abstract base class member public abstract fun zzd(p0: Intent!)

Here I have used FirebaseMessagingService in Kotlin but when I run the project it will give me the following error:

Class 'MyFirebaseMessagingService' is not abstract and does not implement abstract base class member public abstract fun zzd(p0: Intent!): Unit defined in com.google.firebase.messaging.FirebaseMessagingService

Any help?

like image 802
Nilesh Panchal Avatar asked May 03 '18 07:05

Nilesh Panchal


4 Answers

Update all your Firebase dependencies to use the latest version: 15.0.2
https://firebase.google.com/support/release-notes/android

like image 133
PingForward Avatar answered Nov 09 '22 06:11

PingForward


If you aren't using any other play services then upgrade your firebase version to 15.0.2.

if you are, downgrading to 12.0.1 will work.

Make sure to stick to play service 3.2.1 since 3.3.0 will still crash firebase-config.

like image 35
Brijesh Joshi Avatar answered Nov 09 '22 06:11

Brijesh Joshi


On 2nd of May there is a new release that allow the below

Firebase Android SDKs now have independent version numbers, allowing for more frequent, flexible updates.

So I think now we need to used different versions according to each module, check release notes pages to latest released details https://firebase.google.com/support/release-notes/android

like image 4
Sameh Mikhail Avatar answered Nov 09 '22 05:11

Sameh Mikhail


Just update google-services to 3.2.1 with 3.3.0 might be some problems

classpath 'com.google.gms:google-services:3.2.1'

and firebase-messaging to 15.0.2

implementation 'com.google.firebase:firebase-messaging:15.0.2'
like image 2
Yuri Misyac Avatar answered Nov 09 '22 05:11

Yuri Misyac