Skip to content

Instantly share code, notes, and snippets.

@Subtle-fox
Created July 5, 2018 07:11
Show Gist options
  • Save Subtle-fox/aea0a69ff70b62f5f9bfd8b89b5e4e47 to your computer and use it in GitHub Desktop.
Save Subtle-fox/aea0a69ff70b62f5f9bfd8b89b5e4e47 to your computer and use it in GitHub Desktop.
gradle : resolve version conflicts
buildscript { ... }
allprojects { ... }
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support') {
details.useVersion "27.1.1"
}
if (details.requested.group == 'android.arch.lifecycle') {
details.useVersion "1.1.1"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment