Android dependency ‘androidx.core:core’ has different version for the compile (1.0.0) and runtime...

在这个路径…/android/build.gradle (不是这个路径…/android/app/build.grade) 添加如下配置

subprojects {
    project.configurations.all {
        resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'androidx.core' &&
                    !details.requested.name.contains('androidx')) {
                details.useVersion "1.0.1"
            }
        }
    }
}

如果还不能解决可以看看这里:

https://github.com/flutter/flutter/issues/27254

你可能感兴趣的:(Android dependency ‘androidx.core:core’ has different version for the compile (1.0.0) and runtime...)