diff --git a/library/core/build.gradle b/library/core/build.gradle index abfcc10adf..1b090a7537 100644 --- a/library/core/build.gradle +++ b/library/core/build.gradle @@ -61,8 +61,12 @@ dependencies { androidTestImplementation 'com.google.guava:guava:' + guavaVersion androidTestImplementation 'com.linkedin.dexmaker:dexmaker:' + dexmakerVersion androidTestImplementation 'com.linkedin.dexmaker:dexmaker-mockito:' + dexmakerVersion - androidTestImplementation(project(modulePrefix + 'testutils')) { - exclude module: gradle.ext.exoplayerModulePrefix + 'library-core' + if (gradle.ext.has('exoplayerModulePrefix')) { + androidTestImplementation(project(modulePrefix + 'testutils')) { + exclude module: gradle.ext.exoplayerModulePrefix + 'library-core' + } + } else { + androidTestImplementation project(modulePrefix + 'testutils') } testImplementation 'com.google.guava:guava:' + guavaVersion testImplementation 'org.robolectric:robolectric:' + robolectricVersion