Skip to content

Instantly share code, notes, and snippets.

View x2on's full-sized avatar

Felix Schulze x2on

View GitHub Profile
@x2on
x2on / multidex-androidtest.gradle
Created December 3, 2015 17:04
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")
}
}