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

前端 未结 8 1799
萌比男神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 17:22

    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

    0 讨论(0)
  • 2021-01-07 17:22

    Firebase Android Release Notes

    Firebase Core     com.google.firebase:firebase-core:15.0.2
    Analytics         com.google.firebase:firebase-analytics:15.0.2
    Authentication    com.google.firebase:firebase-auth:15.1.0
    Cloud Firestore   com.google.firebase:firebase-firestore:16.0.0
    Cloud Messaging   com.google.firebase:firebase-messaging:15.0.2
    

    Unit defined in com.google.firebase.messaging.FirebaseMessagingService

    You should Downgrade version. Use 15.0.0.

     com.google.firebase:firebase-****:15.0.0
    

    NOTE

    If the problem still coming, You can use stable 12.0.1.

     com.google.firebase:firebase-****:12.0.1
    
    0 讨论(0)
提交回复
热议问题