您好我试图将自定义目录添加到Realm并获取错误: 不可恢复的错误。 /Users/cm/Realm/realm-java/realm/realm-library/src/main/cpp/io_realm_internal_SharedRealm.cpp第92行不允许进行操作
请帮助:
Realm.init(getApplicationContext());
RealmConfiguration realmConfiguration =
new RealmConfiguration.Builder().directory(Methods.getParent())
.name("mydb.realm")
.schemaVersion(1)
.deleteRealmIfMigrationNeeded().build();
Realm.setDefaultConfiguration(realmConfiguration);