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

前端 未结 8 1800
萌比男神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

    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
    

提交回复
热议问题