I'm getting error
java.lang.RuntimeException: No properties to serialize found on class com.dueaoinfo.mycbe.ModelClass.NewsModel
i try this but not work. Firebase No properties to serialize found on class
NewsModel.java
public class NewsModel implements Serializable {
public static String Title;
public static String Body;
public static String Date;
public static String ID;
public static String Location;
public static String Source;
public NewsModel(String title, String body, String date, String ID, String location, String source) {
Title = title;
Body = body;
Date = date;
this.ID = ID;
Location = location;
Source = source;
}
public NewsModel(){
}
public static String getTitle() {
return Title;
}
public static void setTitle(String title) {
Title = title;
}
public static String getBody() {
return Body;
}
public static void setBody(String body) {
Body = body;
}
public static String getDate() {
return Date;
}
public static void setDate(String date) {
Date = date;
}
public static String getID() {
return ID;
}
public static void setID(String ID) {
NewsModel.ID = ID;
}
public static String getLocation() {
return Location;
}
public static void setLocation(String location) {
Location = location;
}
public static String getSource() {
return Source;
}
public static void setSource(String source) {
Source = source;
}
}
I've checked types, and all are accepted. What's wrong?