The answer for me was to also add this to my build.gradle
file:
configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "26.1.0"
}
}
}
In my case, it was nessisary to enclose the resolution strategy in a configurations.all { .. }
block. I placed the configurations.all
block directly into my app/build.gradle
file (ie configurations.all
was not nested in anything else)