美文网首页
添加组件到项目

添加组件到项目

作者: 红鲤鱼与绿鲤鱼与驴_a2ef | 来源:发表于2017-08-22 13:05 被阅读0次
    allprojects {
        repositories {
            jcenter()
            maven { url 'https://maven.google.com' }
        }
    }
    

    For Lifecycles, LiveData, and ViewModel, add:

    compile "android.arch.lifecycle:runtime:1.0.0-alpha3"
    compile "android.arch.lifecycle:extensions:1.0.0-alpha3"
    annotationProcessor "android.arch.lifecycle:compiler:1.0.0-alpha3"
    

    For Room, add:

    compile "android.arch.persistence.room:runtime:1.0.0-alpha3"
    annotationProcessor "android.arch.persistence.room:compiler:1.0.0-alpha3"
    

    For testing Room migrations, add:

    testCompile "android.arch.persistence.room:testing:1.0.0-alpha3"
    

    For Room RxJava support, add:

    compile "android.arch.persistence.room:rxjava2:1.0.0-alpha3"
    

    相关文章

      网友评论

          本文标题:添加组件到项目

          本文链接:https://www.haomeiwen.com/subject/tehhcxtx.html