I am using Library greendao to save the data type to local database. After setting up the entity and running the app a new property was added in the api response. It became something like this. before :
@Entity
public class Data{
@Id
long id;
String name;
String detail;
}
after:
@Entity
public class Data{
@Id
long id;
String name;
String detail;
String image;
}
After updating data type I reinstalled the app then ran the app but there was an error android.database.sqlite.SQLiteException: no such column: T.IMAGE (code 1): , while compiling: SELECT T."_id",T."NAME",T."DETAIL",T."IMAGE" FROM "DATA" T
How do I solve this?