From 01c51cb3d86130191420a821a2a536b5f716475f Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Tue, 19 Nov 2024 11:38:30 +0800 Subject: [PATCH] Fix 'not recognized by any processor: [room.schemaLocation...]' https://stackoverflow.com/questions/45979736/warning-the-following-options-were-not-recognized-by-any-processor-room-sche --- core/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/build.gradle b/core/build.gradle index cac198e9..d9663061 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -27,6 +27,11 @@ android { arg("room.incremental", true) arg("room.schemaLocation", "$projectDir/schemas") } + javaCompileOptions { + annotationProcessorOptions { + arguments = ["room.schemaLocation":"$projectDir/schemas".toString()] + } + } } buildFeatures {