Skip to content

FriendlyMessage friendlyMessage = snapshot.getValue(FriendlyMessage.class); get error #86

Description

@yopetra

This string get error when trying to conver result of snapshot which is String to FriendlyMessage object.
Here is an error:
com.google.firebase.database.DatabaseException: Can't convert object of type java.lang.String to type com.example.android.firebaseapp01.FriendlyMessage

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions