How to use RealmObject class

2

I'm working on an Android project and trying to use the RealmObject class is not recognized even though I import the io.realm.RealmObject package.

Is this class no longer available?

    
asked by anonymous 15.12.2016 / 12:35

1 answer

3

To solve this problem you need to put the library in build.gradle .

classpath "io.realm: realm-gradle-plugin: 2.2.1"

In my case it looked like this:

dependencies {
      classpath "io.realm:realm-gradle-plugin:2.2.1"    
}
    
15.12.2016 / 13:04