Program type already present: io.realm.DefaultRealmModule
Closed this issue · 1 comments
batorshih commented
Program type already present: io.realm.DefaultRealmModule
batorshih commented
if you use RealmDabase in your app, Realm Configration can be like below
@RealmModule(library = true, classes = {Testmodel.class,/*your model classes*/}) public class RealmModuleLocal { }
Realm.init(this); RealmConfiguration config1 = new RealmConfiguration.Builder() .name("myrealm.realm") .modules(new RealmModuleLocal()) .build(); Realm realm = Realm.getInstance(config1);