ncov_2019 icon indicating copy to clipboard operation
ncov_2019 copied to clipboard

flutter run 报错

Open xinpiaoyuanfang opened this issue 5 years ago • 2 comments

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

请问这个怎么处理

xinpiaoyuanfang avatar Feb 09 '20 11:02 xinpiaoyuanfang


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"
            }
        }
    }
}

ahyangnb avatar Feb 16 '20 08:02 ahyangnb

目前已解决,您可直接拉代码运行

ahyangnb avatar Feb 16 '20 08:02 ahyangnb