Apply Realm

Asked 2 years ago, Updated 2 years ago, 58 views

Hello! I'm studying Android~

I got to know the reality, so I'm applying it.

I'm asking you this question because it's blocked from the beginning

First of all, I didn't major in computer engineering, but I didn't study hard about Android or Java, so you might be frustrated. Thank you for your understanding.crying (I don't know much about gradle or pro guard. No, actually, I don't know... ))

https://realm.io/kr/docs/java/latest/#section-2

I'm looking at the document inside and imitating it

of installation Add the classpath "io.realm:realm-gradle-plugin:" to the project-level build.gradle file in step 1 and

I added apply plugin: 'realm-android' in the dependencies of the gradle file at the app level (actually, I don't know if it's right to do it in the dependencies within the app level...)

If I try a sync project later, I get an error, so why is that...

 Project level
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.0'
        classpath "io.realm:realm-gradle-plugin:"
    }

   App level

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.android.support:design:23.4.0'
    apply plugin: 'realm-android'
}


I did this.

Error encountered this error....

android realm

2022-09-22 21:51

1 Answers

Hello, I'm Kim Yongwook of Realm.

There's a problem with the version notation while reorganizing our site. That's why you have a problem. I'm sorry about that

Replace classpath "io.realm:realm-gradle-plugin:" with classpath "io.realm:realm-gradle-plugin:1.0.1" and enter it.


2022-09-22 21:51

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.