diff --git a/app/build.gradle b/app/build.gradle index 9ba97ca6..aac15c89 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -153,8 +153,12 @@ dependencies { androidTestImplementation('com.schibsted.spain:barista:3.6.0') { exclude group: 'org.jetbrains.kotlin' } - androidTestImplementation "org.mockito:mockito-android:3.4.6" - androidTestImplementation 'com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0' + androidTestImplementation "org.mockito:mockito-android:3.5.10" + androidTestImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0") { + // Workaround for Android API < 26: + // https://github.com/mockito/mockito/pull/2024 + exclude group: "org.mockito", module: "mockito-core" + } kaptAndroidTest 'com.google.dagger:dagger-compiler:2.28' }