udacity / and-nd-firebase

Course code repository for Firebase in a Weekend by Google: Android
https://www.udacity.com/course/firebase-in-a-weekend-by-google-android--ud0352
Apache License 2.0
299 stars 714 forks source link

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

Open yopetra opened 4 years ago

yopetra commented 4 years ago

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