From c8e241fc76d175067266ad1f3cd4241cf0d3d235 Mon Sep 17 00:00:00 2001 From: J-Jamet Date: Sun, 8 Mar 2020 09:50:32 +0100 Subject: [PATCH] Fix Room incremental warning --- app/build.gradle | 6 ++++++ gradle.properties | 1 + 2 files changed, 7 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 6bc768fbd..6e5ae18c4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -19,6 +19,12 @@ android { testInstrumentationRunner = "android.test.InstrumentationTestRunner" buildConfigField "String[]", "ICON_PACKS", "{\"classic\",\"material\"}" + + javaCompileOptions { + annotationProcessorOptions { + arguments = ["room.incremental":"true"] + } + } } externalNativeBuild { diff --git a/gradle.properties b/gradle.properties index 0c0632ee2..1631b8247 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,4 @@ android.enableJetifier=true android.useAndroidX=true +kapt.incremental.apt=true org.gradle.jvmargs=-Xmx2048M