0
public static BoxStore getBoxStore() {
    synchronized (TayqaSale.class) {
        if (sBoxStore == null || sBoxStore.isClosed()) {
            int flags = 0;
            sBoxStore = MyObjectBox.builder().maxSizeInKByte(3000000).maxReaders(10000)
                    .androidContext(getInstance())
                    .debugFlags(flags).build();
        }
            return sBoxStore;
    }
}

My code is like this, and sometimes when i want to run app when older version is installed it throws exception like another boxstore is still open

This is how it is intended to use boxstore but still some crashes... if i install by deleting older version and clearing back up it will work, but i want to update

  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Jul 17 '23 at 08:30

0 Answers0