Open jadder opened 6 years ago
@jadder you imported java.util.EventListener
but you meant to import com.google.firebase.firestore.EventListener
Error:(60, 56) error: incompatible types: FirestoreAdapter
it gives this error even though i imported the statement you said
This issue still exists:
addSnapshotListener(com.google.firebase.firestore.EventListener
I am also not sure how com.google.firebase.firestore.EventListener is related since addSnapshotListener has the following variants:
@kroikie something for you to look at when you're tackling codelabs bugs.
@jadder you imported
java.util.EventListener
but you meant to importcom.google.firebase.firestore.EventListener
This issue is still there. Even after importing com.google.firebase.firestore.EventListener. Also, @override gives error on onEvent method.
The app runs after commenting @override and typecasting 'this' to '(EventListener
Still same issue come
mRegistration = mQuery.addSnapshotListener(this);
"this" is getting me this error.
NOTE: the interface EventLister is empty , so I just have to comment the //@Override public void onEvent(QuerySnapshot documentSnapshots, FirebaseFirestoreException e) {
Code bellow