Skip to content

Instantly share code, notes, and snippets.

View eecarus's full-sized avatar

eecarus eecarus

  • Indianapolis, IN
View GitHub Profile
@eecarus
eecarus / build.gradle
Created April 7, 2018 15:49
A way to force all dependencies for android support to follow a single version (in this case 25.4.0) without using tools:replace.
// from https://stackoverflow.com/questions/43280871/android-getting-manifest-merger-failed-error-after-updating-to-a-new-version
// to force everything to use 25.4.0 instead of dealing with merge conflict on 26.1.0
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '25.4.0'
}
}