У меня есть следующие конфликты Gradle.
Conflict with dependency 'net.danlew:android.joda' in project ':app'. Resolved versions for runtime classpath (2.10.1) and compile classpath (2.7.2) differ. This can lead to runtime crashes. To resolve this issue follow advice at https://developer.android.com/studio/build/gradle-tips#configure-project-wide-properties. Alternatively, you can try to fix the problem by adding this snippet to C:\Users\...\Documents\...\..\..\build.gradle:
Решение, которое я использовал для решения этой проблемы, заключается в следующем:
configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'net.danlew:android.joda'
&& !details.requested.name.contains('joda') ) {
details.useVersion "2.7.2"
}
}
}
Это самый идеальный способ решенияконфликты зависимостей?