在module A里使用productFlavors时:
productFlavors{
testa{
}
testb{
}
}
编译时出现 Configuration with name 'debug' not found.
原因:其他模块引用了module A,如:
releaseCompile project ( path : 'moduleA" ,configation:'release')
debugCompile project ( path : 'moduleA" ,configation:'debug');
在其他模块找不到moduleA中的release 或者 debug;
解决办法:
其他模块引入的地方 release 修改 为 testaRelease debug 修改为 testaDebug
releaseCompile project ( path : 'moduleA" ,configation:'release')
debugCompile project ( path : 'moduleA" ,configation:'debug');