litesuits / android-lite-orm

LiteOrm is a fast, small, powerful ORM framework for Android. LiteOrm makes you do CRUD operarions on SQLite database with a sigle line of code efficiently.
http://litesuits.com?form=gorm
Apache License 2.0
1.49k stars 362 forks source link

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

Open forTribeforXuanmo opened 6 years ago

forTribeforXuanmo commented 6 years ago

全局使用一个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: 怎么解决啊 作者,有时间看下