I'm attempting to initialize realm in my onCreate() in an IntentService, and it crashes every time:
java.lang.AbstractMethodError: abstract method "java.util.List io.realm.internal.RealmProxyMediator.getModelClasses()"
at io.realm.internal.RealmProxyMediator.hashCode(RealmProxyMediator.java:144)
at io.realm.RealmConfiguration.hashCode(RealmConfiguration.java:156)
at java.util.Collections.secondaryHash(Collections.java:3405)
at java.util.HashMap.get(HashMap.java:300)
at io.realm.Realm.createAndValidate(Realm.java:265)
at io.realm.Realm.create(Realm.java:247)
at io.realm.Realm.getInstance(Realm.java:219)
at io.realm.Realm.getInstance(Realm.java:182)
I tried moving the creation into an Activity, to see if that would work any better. It's like it doesn't know how to find my model classes (in data/model).
My model classes extend RealmObject, everything compiles fine... but it looks like it's failing to find them? I tried added the @RealmClass annotation to my model objects, but no luck there.
This is with realm 0.84. All my model classes are in data/model.
Any ideas or help would be appreciated.
Thanks,
Mark