Hi! I need to downgrade a transitive dependency to...
# community-support
t
Hi! I need to downgrade a transitive dependency to a particular version. At first I thought this can easily be done with my existing
platform
definition, but this does not work. So I changed the usage (in my platform project) to
Copy code
val emoji2 = "1.4.0-beta05"
api("androidx.emoji2:emoji2") {
    version {
        strictly(emoji2)
    }
}
api("androidx.emoji2:emoji2-views-helper") {
    version {
        strictly(emoji2)
    }
}
This however gives me the strange error
Copy code
Dependency path 'my.module' --> 'androidx.appcompat:appcompat:1.6.1' (releaseVariantReleaseRuntimePublication) --> 'androidx.emoji2:emoji2-views-helper:1.4.0' (releaseVariantReleaseRuntimePublication) --> 'androidx.emoji2:emoji2:1.4.0' because of the following reason: emoji2-views-helper is in atomic group androidx.emoji2
What is an “atomic group”? I never heard of this. Is the only way to downgrade a dependency component-wide via
Copy code
configurations["myConfiguration"].resolutionStrategy.force(...)
then?