Skip to content

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

@SunZeF

Description

@SunZeF

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();
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions