我们可以强制Gradle使用我们的主项目SDK版本和工具版本构建所有依赖项。使用Android SDK依赖项将以
下行添加到项目中android/build.gradle。
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
}
}
}
}
可以相应查看期刊 期刊地址