I'm using codes as shown below, but somehow everything is working perfectly fine in debug version but as soon as I compile release version of the app, I get the error.
no such column: IMAGE_ID
Currently using sugarORM version 1.3 also using proguard
public class Favorite extends SugarRecord<Favorite> {
private int imageId;
private int licenseId;
public Favorite(int imageId, int licenseId){
this.imageId = imageId;
this.licenseId = licenseId;
}
}
This is the query i am using to find the image_id
List<Favorite> favorites = Favorite.find
(Favorite.class, "IMAGE_ID = ?", ((String) ("" + imageId)));
if (!favorites.isEmpty()) {
return favorites.get(0);
}
I've tried using image_id
Image_Id
image_Id
image_ID
and few other
but I always get error
`no such column exception in my release version of my application.
I have also tried many suggestion asked in the such type of question(s) but nothing is working as expected.