Home » Android » android – Is RealmBaseAdapter removed from realm-java?

android – Is RealmBaseAdapter removed from realm-java?

Posted by: admin June 15, 2020 Leave a comment

Questions:

I am trying to use an example from realm-java on github and figured that RealmBaseAdapter has been removed from io.realm package. Where is it being saved now?

How to&Answers:

It has been split into a separate dependency as of Realm Java v0.90. Per the Adapters section of the Realm Java documentation, you should add the following to your build.gradle to use RealmBaseAdapter:

dependencies {
    compile 'io.realm:android-adapters:2.1.0'
}