ncov_2019
ncov_2019 copied to clipboard
flutter run 报错
Android dependency 'androidx.legacy:legacy-support-core-ui' has different version for the compile (1.0.0-rc01) and runtime (1.0.0) classpath. You should manually set the same version via DependencyResolution
请问这个怎么处理
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'androidx.lifecycle' &&
!details.requested.name.contains('androidx')) {
details.useVersion "2.0.0"
}
if (details.requested.group == 'androidx.slidingpanelayout' &&
!details.requested.name.contains('androidx')) {
details.useVersion "1.0.0"
}
if (details.requested.group == 'androidx.legacy' &&
!details.requested.name.contains('androidx')) {
details.useVersion "1.0.0"
}
if (details.requested.group == 'androidx.fragment' &&
!details.requested.name.contains('androidx')) {
details.useVersion "1.0.0"
}
}
}
}
目前已解决,您可直接拉代码运行