Error:Execution failed for task ':app:preDebugAndroidTestBuild'. > Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (26.1.0) and test app (27.1.1) differ. See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details.
vishald19 opened this issue · 2 comments
vishald19 commented
JakeWharton commented
The error message is pretty clear as to what's happening here. You need to force the support library dependency to be the same version in both your main sources and test sources. You can do this by specifying the same version in both configurations, or by using a resolution strategy like:
configurations.all {
resolutionStrategy {
eachDependency { details ->
// Force all of the primary support libraries to use the same version.
if (details.requested.group == 'com.android.support') {
details.useVersion versions.supportLibrary
}
}
}
}
vishald19 commented
Thank you for your response!!!
…On Tue, Apr 9, 2019, 12:17 AM Jake Wharton ***@***.***> wrote:
Closed #227 <#227>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#227 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AvDEzb62Z7LlnlRZZoH5vzPKd2HsvJL3ks5ve463gaJpZM4cgDBc>
.