I can not download the ORM Realm
library in Android Studio
. Usually, to load a third-party library, it was enough to build.gradle
line in build.gradle
, in this case I tried to enter:
dependencies { compile 'io.realm:realm-gradle-plugin:1.1.0' }
But when importing in a class, it does not see RealmObject
import io.realm.RealmObject; dependencies { classpath 'io.realm:realm-gradle-plugin:1.1.0' }
That gives an error:
Error: (27, 0) Could not find method class () for arguments [io.realm: realm-gradle-plugin: 1.1.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler . Open file
Who installed the realm? What am I doing wrong?