Skip to content
Advertisement

com.google.firebase.database.Query cannot be cast to com.google.firebase.database.DatabaseReference

Hi I’m implementing a simple search where it will filter based on if the text is the same as the record in the database but I’m having this error could someone help me?

Using equalsTo

I can’t open the fragment it just breaks when trying to open the fragment, what am I doing wrong?

Any help is welcome. Thanks in advance.


JavaScript

JavaScript

Advertisement

Answer

It’s not a DatabaseReference:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement