Open jiangchunyu opened 8 years ago
看起来你在 lib.net
跟 lib.utils
中都引用了 project(':jlog')
,这会导致 jlog
被编译进两个插件中,导致该问题。
那应该怎么解决这个问题呢, 我现在也出现这个问题, sample为什么可以同时都引用lib.style或util呢?
原则上各个 lib.*
插件之间功能应该是独立的、各司其职。
为什么大家都需要一个 jlog
呢?这个应该是架构的问题,在做插件化之前首先要把模块都解耦好了。
原则上接口什么的是不能出现在两个dex中的,出现上面这种情况就是这个原因,详见源码: `/*
报错信息是
有两个app app.main build
app.secound build
lib.net build
lib.utils build
jlog 只是一个简单的打印库