I'm getting error(s) while compiling due to AndroidX incompatibility:
Android dependency 'androidx.vectordrawable:vectordrawable' has different version for the compile (1.0.0) and runtime (1.0.1) classpath. You should manually set the same version via DependencyResolution
following -> this post <- I've added some code to build.gradle
allprojects {
configurations.all {
resolutionStrategy.force"androidx.vectordrawable:vectordrawable:1.0.0",
}
repositories {
google()
jcenter()
}
next run gave me this other error
Android dependency 'androidx.core:core' has different version for the compile (1.0.0) and runtime (1.0.1) classpath. You should manually set the same version via DependencyResolution
I tried to add this
"androidx.vectordrawable:vectordrawable:1.0.0","androidx.core:core:1.0.0",
but I'm probably doing it wrong, since I get the classical "unexpected bla bla bla"
any suggestion?
thanks in advance
[edit] i've tried this old trick as well, but didn't work (also downgrading the packages as required HERE)
rootProject.allprojects {
project.configurations.all {
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"
}
}
}
}
now returns a different error
Android dependency 'androidx.appcompat:appcompat' has different version for the compile (1.0.0) and runtime (1.0.2) classpath. You should manually set the same version via DependencyResolution