muszę usługi FCM w moim wniosku, że nie można użyć klasy FirebaseMessagingService, to mówi:Error „zwracany typ int nie jest kompatybilny z zamiarem” podczas korzystania FirebaseMessagingService klasę
Error:(24, 8) error: zzaa(Intent) in FirebaseMessagingService cannot override zzaa(Intent) in zzb return type int is not compatible with Intent
tutaj jest mój kod
public class MyFirebaseMessagingService extends FirebaseMessagingService {
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
sendNotification(remoteMessage.getData().get("message"));
}
private void sendNotification(String messageBody) {
//
}
}
Używam tej wersji biblioteki compile 'com.google.firebase:firebase-messaging:9.2.0'
Posiadanie tego samego problemu –