How to use Realmobject class

Asked

Viewed 46 times

2

I am working on an Android project and while trying to use the class Realmobject it is not recognized, even importing the package io.realm.Realmobject.

This class is no longer available?

  • Already installed the plugin? This does not come by default on Android.

  • Thank you very much for your attention. I managed to solve it the way I answered.

1 answer

3


To solve this problem it is necessary to put the library in the build.Gradle.

classpath "io.Realm:Realm-Gradle-plugin:2.2.1"

In my case it got that way:

dependencies {
      classpath "io.realm:realm-gradle-plugin:2.2.1"    
}
  • Don’t forget to mark your answer as correct :D

  • Done, thank you

Browser other questions tagged

You are not signed in. Login or sign up in order to post.