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

类"MyFirebaseMessagingService"不是抽象的,并且没有实现抽象基类成员公共抽象趣味zzd(p0:Intent!):在com中定义的单位.谷歌. firebase 基地.信息.FirebaseMessagingService

Any help?

推荐答案

If you aren't using any other play services then upgrade your firebase version to 15.0.2.

如果你是,降到12.0.1级就行了.

Make sure to stick to play service 3.2.1 since 3.3.0 will still crash firebase-config.

Kotlin相关问答推荐

如何在Kotlin中反射多个对象以查找特定类型的属性

最好的方法来创建一个 map 在kotlin从两个列表

如何接受任何派生类KClass

如何在Docker中使用Selenium和chromedriver?

Webpack 配置未应用于 kotlin 多平台react 项目

Kotlin SIZE_BYTES

为什么记得不将 StateFlow 转换为特定类型?

Kotlin SAM/功能接口抛出 AbstractMethodError

Kotlin 条件格式字符串

如何从 kotlin 函数中 Select 正确的枚举值

在 Kotlin 中,::class.simpleName是做什么的?

从字符串列表构建字符串

Saripaar formvalidation 在 kotlin 中第二次不起作用

Kotlin JS JSON 反序列化

Kotlin boxed Int 不一样

`DataBindingUtil` 中的 `bind`、`inflate` 和 `setContentView` 有什么区别

用Gradle Kotlin DSL构建源jar?

Failure delivering result on activity result

递归方法调用在 kotlin 中导致 StackOverFlowError 但在 java 中没有

kotlin中密封类和密封接口的区别是什么