我正在尝试使用firebase 9.2.1库访问FirebaseMessagingService。我已经成功创建了一个项目,然后下载了JSON文件。我终于将此JSON文件与我的项目集成在一起。 FirebaseInstanceIDService运行正常,但显示FirebaseMessagingService错误。所以我在android studio中检查了我的项目文件夹。然后我发现缺少firebase-messaging 9.2.1库。我该如何解决这个问题。我已经升级了所有SDK库。请帮助我解决此问题。
最佳答案
您需要将Firebase Messaging添加到您的依赖项中:
compile 'com.google.firebase:firebase-messaging:9.2.1'
documentation中说明了Firebase Cloud Messaging的设置。