我正在尝试将 Firebase Cloud Messaging 集成到 Android 应用程序中,但在我们的类中扩展 FirebaseMessagingService
时遇到问题。
它显示无法解析符号“FirebaseMessagingService”
应用程序.gradle
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.google.firebase:firebase-database:9.8.0'
同时添加 google-service.json 文件
最佳答案
你还需要添加
compile "com.google.firebase:firebase-messaging:$PLAY_SERVICES_VERSION"
关于android - 无法解析符号 "FirebaseMessagingService",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41186144/