如果没有解决 请参考
https://www.e-learn.cn/content/wangluowenzhang/174554
So change this
debugCompile project(path: ':foo', configuration: 'debug')
releaseCompile project(path: ':foo', configuration: 'release')
to this
implementation project(':foo')