我有以下产生错误的代码:Error:Parceler: Unable to find read/write generator for type io.realm.Realm for io.realm.RealmObject.realm
没有 . 它一切正常extends RealmObject
,但是我想使用 Realm 轻松放入数据库。有没有办法排除 RealmObject 字段,只使用@Parcel 的基本 pojo 字段?
@Parcel
public class Feed extends RealmObject{
int id;
public String text;
public String time_created;
String time_modified;
int comments_count;
int likes_count;
String feed_type;
int obj_id;
String image;
String user_name;
String user_earthmile_points;
boolean liked;
boolean commented;
boolean is_private;
String url;
int feed_creator_id;
}