android - 类 'MyFirebaseMessagingService' 不是抽象的,也没有

这里我在 Kotlin 中使用了 FirebaseMessagingService,但是当我运行项目时,它会给我以下错误:

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

有什么帮助吗?

最佳答案

更新您的所有 Firebase 依赖项以使用最新版本:15.0.2
https://firebase.google.com/support/release-notes/android

关于android - 类 'MyFirebaseMessagingService' 不是抽象的,也没有实现抽象基类成员 public abstract fun zzd(p0 : Intent! ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50149495/

相关文章:

kotlin - 做任何==对象

android - Kotlin 错误 : Dagger does not support inje

string - 为什么 Kotlin 中 null + null 的类型是隐式 String?

java - 如何在 Java 中访问 Kotlin 伴随对象?

file - 在 Kotlin 中递归列出文件

android - 产品 flavor : Duplicate class found

kotlin - 从 lambdas 或 Kotlin : 'return' is not allo

kotlin - 从 Kotlin 中的密封类扩展数据类

kotlin - 函数定义: fun vs val

android - kotlin 中的重载解析歧义错误