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