From 13a5c01bc5fd64f011cd0abae6403d1a854296ad Mon Sep 17 00:00:00 2001 From: Sam Spycher Date: Sun, 9 Jan 2022 16:50:27 +0100 Subject: [PATCH] Enable build on Apple M1 --- build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle b/build.gradle index afb48a4186..8add55d5c2 100644 --- a/build.gradle +++ b/build.gradle @@ -76,6 +76,14 @@ allprojects { jvmTarget = "11" } } + // Workaround to support M1 builds. Room 2.4.0 fixes this but requires min compileSdkVersion + // 31 => remove when upgrading to Room 2.4.0 + // Source: https://issuetracker.google.com/issues/174695268 + configurations.configureEach { + resolutionStrategy { + force 'org.xerial:sqlite-jdbc:3.34.0' + } + } } task clean(type: Delete) {