而不是在每个子项目中复制android配置块:
android {
compileSdkVersion 19
buildToolsVersion "19.0.0"
defaultConfig {
minSdkVersion 9
targetSdkVersion 14
}
}
Run Code Online (Sandbox Code Playgroud)
我宁愿把它放在顶级/根gradle构建文件中,如:
subprojects{
android {
compileSdkVersion 19
buildToolsVersion "19.0.0"
defaultConfig {
minSdkVersion 9
targetSdkVersion 14
}
}
}
Run Code Online (Sandbox Code Playgroud)
但是,这不起作用.:(
错误:"..无法找到参数的方法android()......"