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

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

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

    0 讨论(0)
  • 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
    0 讨论(0)
  • 2021-01-07 17:03

    We have the same problem with version 15.0.0.
    Downgrade to 12.0.1 solves the problem.

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

    I fixed this issue by -

    • Updating

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

    Firebase version from 15.0.0 to 15.0.2 for all except firebase auth as it is at 15.1.0

    At last I updated google play services version from 15.0.0 to 15.0.1

    After all these changes sync your gradle files.

    Hope this helps.

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

    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.

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

    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'
    
    0 讨论(0)
提交回复
热议问题