Closed youngjuning closed 4 years ago
子模块的 build.gradle 中设置:
android { publishNonDefault true }
然后在模块的依赖处,例如 app 模块的 build.gradle 中改进依赖的写法:
dependencies { releaseCompile project(path: ':module', configuration: 'release') releaseStagingCompile project(path: ':module', configuration: 'releaseStaging') debugCompile project(path: ':module', configuration: 'debug') }
https://blog.csdn.net/fly_yuge/article/details/51754640
https://www.jianshu.com/p/c15d594cad63
https://www.jianshu.com/p/3d9b23afe514
子模块的 build.gradle 中设置:
然后在模块的依赖处,例如 app 模块的 build.gradle 中改进依赖的写法: