问题描述:
Circular dependency between the following tasks:
:app:bundleDebugClasses
— :app:compileDebugJavaWithJavac
— :CustomModule:bundleLibCompileToJarDebug
— :CustomModule:compileDebugJavaWithJavac
— :app:bundleDebugClasses (*)
(*) - details omitted (listed previously)
问题原因:两个Module互相引用了对方。
例如: app module引入了 CustomModule module,同时。 CustomModule module 也引入了 app module。
解决办法:删除一个引入,单向引入即可即可。
步骤:
File
Project Structure
Dependences
- 找到2个双用的Module,删除一个即可