Etc/android

[android] realm db gradle 설정

ten415 2023. 8. 23. 23:53
728x90
반응형

1. build.gradle (:app) , build.gradle (Project:플젝명)

2. build.gradle( Project : 플젝명 ) 

  아래 구문 추가 

id 'io.realm.kotlin' version '1.10.0' apply false

3. build.gradle (:app) 

  아래 구문들 추가 

plugins {
    id 'io.realm.kotlin' // 추가 
}

dependencies {
    implementation 'io.realm.kotlin:library-base:1.10.0'
    implementation 'io.realm.kotlin:library-sync:1.10.0'// If using Device Sync
    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.0' // If using coroutines with the SDK
}

4. File > Sync Project with Gradle Files (Android Studio)

 

5. 완료

728x90
반응형