更新到Gradle插件3.0.0 beta 4之后,我们的构建失败,并出现以下消息:
buildTypeMatching已被删除。请使用buildTypes.<name>.fallbacks
我们的库有release
和debug
buildType
,但我们的应用程序有两个额外的buildType
:'releaseWithLogs'和'debugMinified'。
我们应用程序 Gradle文件的片段:
android {
// ...
buildTypeMatching 'releaseWithLogs', 'release'
buildTypeMatching 'debugMinified', 'debug'
buildTypes {
debug {
// ...
}
debugMinified {
// ...
}
release {
// ...
}
releaseWithLogs {
// ...
}
}
}
matchingFallbacks = ['...']
是否需要作为buildType
的最后一条指令呢?因为当我将其设置为第一条指令时,它并没有起作用。 - Eselfar