Firebase AndroidChat release build error



I implemented a new chat feature for our app using the Firebase androidchat as a template. Everything is working great, no error whatsoever, until I try the release build.



*com.firebase.client.FirebaseException: Failed to bounce to type*


There's one similar question in stackoverflow but it appears the guy managed to fix it by correcting spelling errors within his class. I have none of those and like I said, dev build has no errors.


Here is my class:



public class Chat {

private String message;
private String author;
private String profilePic;
private Long creationDate;
private Boolean god;

// Required default constructor for Firebase object mapping
@SuppressWarnings("unused")
private Chat() {

}

public Chat(String message, String author, String profilePic, Long creationDate, Boolean god) {
this.message = message;
this.author = author;
this.profilePic = profilePic;
this.creationDate = creationDate;
this.god = god;
}

public String getMessage() {
return message;
}

public String getAuthor() {
return author;
}

public String getProfilePic() {
return profilePic;
}

public Long getCreationDate() {
return creationDate;
}

public Boolean getGod() {
return god;
}
}


And here's how it looks like in Firebase console http://ift.tt/172uHvL


Here's the full error if it helps: http://ift.tt/1vHWrBJ


If I remove "creationDate" it will just say "Unrecognized field message" which is also one of the class properties.


Has anyone tried the Release Build of Firebase Android Chat?


No comments:

Post a Comment