From 5f771ff4ecb638f89931a38d91dbd1b41eca4959 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Mon, 14 Sep 2020 14:04:40 -0300 Subject: [PATCH] Fix auto-service warning in instrumentation tests --- app/build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index ac753711..3f2b4c29 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -134,7 +134,10 @@ dependencies { def mockk_version = "1.10.0" testImplementation aospDeps // anything less fails tests run with gradlew testImplementation 'androidx.test.ext:junit:1.1.1' - testImplementation 'org.robolectric:robolectric:4.3.1' + testImplementation('org.robolectric:robolectric:4.3.1') { + // https://github.com/robolectric/robolectric/issues/5245 + exclude group: "com.google.auto.service", module: "auto-service" + } testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version" testImplementation "io.mockk:mockk:$mockk_version" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"