ormlite-android icon indicating copy to clipboard operation
ormlite-android copied to clipboard

queryForLong from database failed: SELECT COUNT(*) FROM `xxxx` WHERE `_Id` = ?

Open SunZeF opened this issue 1 year ago • 5 comments

Hello , There are comments that the table creation failed, and the version number needs to be upgraded or the app needs to be uninstalled and reinstalled ,Is there any other solution? For the code below public void add(List bean) { if (bean == null || bean.isEmpty()) { return; } try { for (xxxx entity : bean) { noticeDao.createOrUpdate(entity); } } catch (Exception e) { e.printStackTrace(); } }

SunZeF avatar Oct 24 '24 02:10 SunZeF

Sorry @SunZeF, I'm not an Android specialist so I have no idea what you are talking about. The version-number being upgraded is not a ORMLite error right? It seems like an Android problem so I would think that a SO post to https://android.stackexchange.com/ may be in order.

j256 avatar Oct 24 '24 12:10 j256

@SunZeF when you say "version number", are you referring to the build number of the Android app? If yes, then it's outside the scope of OrmLite and it's just a matter of increasing that number in your build script/properties file.

ndawod avatar Oct 24 '24 13:10 ndawod

Sorry @SunZeF, I'm not an Android specialist so I have no idea what you are talking about. The version-number being upgraded is not a ORMLite error right? It seems like an Android problem so I would think that a SO post to https://android.stackexchange.com/ may be in order. all right thank

SunZeF avatar Oct 25 '24 02:10 SunZeF

@SunZeF when you say "version number", are you referring to the build number of the Android app? If yes, then it's outside the scope of OrmLite and it's just a matter of increasing that number in your build script/properties file.

The version is 41 after the upgrade ,emmmm, a small number of mobile phones have individual library creation failures data cannot be stored

SunZeF avatar Oct 25 '24 02:10 SunZeF

75473992

ajeet147-cup avatar Nov 08 '24 14:11 ajeet147-cup