From e01f5a72c7782419f01f01b3453d808a71888cb1 Mon Sep 17 00:00:00 2001 From: endian11 <Dana_Lee1016@126.com> Date: 星期一, 25 十一月 2019 16:08:11 +0800 Subject: [PATCH] 使用androidx代替support lib;Room加上注解处理器;修改数据库getID; --- app/build.gradle | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 65af895..5eb1ee0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -37,6 +37,11 @@ implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support:design:28.0.0' api "android.arch.lifecycle:extensions:1.1.1" + + implementation "androidx.room:room-runtime:$rootProject.roomVersion" + annotationProcessor "androidx.room:room-compiler:$rootProject.roomVersion" + implementation "androidx.work:work-runtime:$rootProject.workVersion" + implementation "androidx.lifecycle:lifecycle-extensions:$rootProject.lifecycleVersion" implementation 'com.android.support.constraint:constraint-layout:1.1.3' // To get SwipeBack feature, rely on both fragmentation & fragmentation-swipeback implementation 'me.yokeyword:fragmentation:1.3.6' @@ -48,4 +53,5 @@ androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' implementation project(path: ':lib') + implementation 'com.google.code.gson:gson:2.8.6' } -- Gitblit v1.8.0