Skip to content

Caused by: io.objectbox.exception.DbException: Could not open env for DB (-30793) (error code -30793) #425

@lohago10

Description

@lohago10
BoxStoreBuilder builder = MyObjectBox.builder();
        Factory<InputStream> is = new Factory<InputStream>() {
            @Override
            public InputStream provide() throws Exception {
                Log.e("db", "inputStream");
                InputStream is = context.getResources().getAssets().open(DB_NAME);
                return is;
            }
        };
        boxStore = builder.name(DB_NAME).initialDbFile(is).androidContext(context).build();

DB_NAME="data.db"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions