Skip to content

W/System.err: android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file (code 14) #74

@forTribeforXuanmo

Description

@forTribeforXuanmo

全局使用一个sqlite
public static LiteOrm getOrmInstance(){ if (liteOrm == null) { synchronized (OrmUtil.class){ if(liteOrm==null){ liteOrm = LiteOrm.newSingleInstance(MyApplication.getAppContext(), "liteorm.db"); } } } liteOrm.setDebugged(true); // open the log return liteOrm; }
出现这种问题java.lang.IllegalStateException: attempt to re-open an already-closed object:
怎么解决啊 作者,有时间看下

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