Created
December 3, 2015 17:04
-
-
Save x2on/4fadb710593272c5e229 to your computer and use it in GitHub Desktop.
Workaround for multidex instrumentation test with android-gradle-plugin 1.5.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Workaround for Multidex bug in gradle-android-plugin | |
// Replace Multidex dependency with some dummy dependency to avoid dex problems | |
// @see https://code.google.com/p/android/issues/detail?id=194609 | |
project.getConfigurations().all { config -> | |
if (config.name.contains("AndroidTest")) { | |
config.resolutionStrategy.eachDependency { DependencyResolveDetails details -> | |
if (details.requested.name == "multidex") { | |
details.useTarget("de.felixschulze.teamcity:teamcity-status-message-helper:1.2") | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment