Tôi cần dịch vụ FCM trong ứng dụng của tôi, tôi không thể sử dụng lớp FirebaseMessagingService, nó nói:Lỗi "kiểu trả về int không tương thích với Ý định" khi sử dụng FirebaseMessagingService lớp
Error:(24, 8) error: zzaa(Intent) in FirebaseMessagingService cannot override zzaa(Intent) in zzb return type int is not compatible with Intent
đây là mã của tôi
public class MyFirebaseMessagingService extends FirebaseMessagingService {
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
sendNotification(remoteMessage.getData().get("message"));
}
private void sendNotification(String messageBody) {
//
}
}
tôi đang sử dụng phiên bản này của thư viện compile 'com.google.firebase:firebase-messaging:9.2.0'
Có cùng vấn đề –