From f93f43bf8bf758fceb681ad2e6a9eda91e10ad81 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 27 Oct 2022 14:20:01 +0200 Subject: [PATCH] Fix issue with Jitsi compilation Error was lots of `Duplicate class org.checkerframework.common.reflection.qual.MethodVal found in modules jetified-checker-3.1 (org.checkerframework:checker:3.1.1) and jetified-checker-qual-3.12.0 (org.checkerframework:checker-qual:3.12.0) Cannot use latest 3.15.0 since it required min API 26. --- vector/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vector/build.gradle b/vector/build.gradle index 23dfa8fbc7..9857f88479 100644 --- a/vector/build.gradle +++ b/vector/build.gradle @@ -305,6 +305,11 @@ dependencies { exclude group: "org.jetbrains.kotlinx", module: "kotlinx-coroutines-debug" } + // Fix issue with Jitsi. Inspired from https://github.com/android/android-test/issues/861#issuecomment-872067868 + // Error was lots of `Duplicate class org.checkerframework.common.reflection.qual.MethodVal found in modules jetified-checker-3.1 (org.checkerframework:checker:3.1.1) and jetified-checker-qual-3.12.0 (org.checkerframework:checker-qual:3.12.0) + //noinspection GradleDependency Cannot use latest 3.15.0 since it required min API 26. + implementation "org.checkerframework:checker:3.11.0" + androidTestImplementation libs.androidx.testCore androidTestImplementation libs.androidx.testRunner androidTestImplementation libs.androidx.testRules