How to import Room Persistence Library to an Android project

后端 未结 13 1197
执笔经年
执笔经年 2021-02-05 00:01

I recently saw the new feature announced on Google I/O Room Persistence Library to work with Sqlite databases on Android. I have been looking to the official documentation and I

13条回答
  •  迷失自我
    2021-02-05 00:27

    Try this to compile Room Persistence library

    implementation 'android.arch.persistence.room:runtime:1.1.1';
    annotationProcessor 'android.arch.persistence.room:compiler:1.1.1';
    

    And add this in root level build gradle

    allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
    

提交回复
热议问题