Skip to content

Instantly share code, notes, and snippets.

@x2on
Created December 3, 2015 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save x2on/4fadb710593272c5e229 to your computer and use it in GitHub Desktop.
Save x2on/4fadb710593272c5e229 to your computer and use it in GitHub Desktop.
Workaround for multidex instrumentation test with android-gradle-plugin 1.5.0
// 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