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

前端 未结 8 1809
萌比男神i
萌比男神i 2021-01-07 16:39

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

Class \'MyFirebaseMessagingService

8条回答
  •  鱼传尺愫
    2021-01-07 16:56

    Pretty much the same answer as everyone. You need to update all the firebase and google play services stuff. The thing to take away is that FIREBASE AND GOOGLE PLAY SERVICES VERSION ARE NOT ALWAYS IN SYNC ANYMORE APPARENTLY. So if you are using something like

    ext {
        firebase_version = "15.0.2"
    }
    

    Just ditch them. For all the versions and stuff,

    • Click here for Firebase
    • Click here for Google Play Services
    • Click here for Google Service Plugin

提交回复
热议问题