i'm using codes shown below, somehow working fine in debug version compile release version of app, error.
no such column: image_id
currently using sugarorm version 1.3 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 query using find 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 , few other error `no such column exception in release version of application.
i have tried many suggestion asked in such type of question(s) nothing working expected.
i'm using sugarorm proguard, obfuscate model ( databases ) classes.
in order use sugarorm proguard need update proguard setting not obfuscate database classes.
-keep public class com.youcompany.appname.xx.<classname> extends sugarrecord{*;} -keep public class com.youcompany.appname.xx.<classname> extends sugarapp{*;}
Comments
Post a Comment