All the AndroidX versions different from the compile. I have had similar issue, just solved it using this inside app/build.gradle.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | configurations.all { resolutionStrategy { resolutionStrategy.eachDependency { details -> if (details.requested.group == 'androidx.core') { details.useVersion "1.0.1" } if (details.requested.group == 'androidx.lifecycle') { details.useVersion "2.0.0" } if (details.requested.group == 'androidx.versionedparcelable') { details.useVersion "1.0.0" } if (details.requested.group == 'androidx.fragment') { details.useVersion "1.0.0" } if (details.requested.group == 'androidx.appcompat') { details.useVersion "1.0.1" } } } } |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.