Dependencies from two components in one activity
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm playing with Dagger-2 to figure how to integrate it in our existing application and I'm facing something which I can't understand or I'm doing wrong. My situation : 3 API without any annotated constructor ( each one in its own file ) public class DbApi { public void doSomething ( String username , String password ) { } } public class RestApi { public void doSomething ( String username , String password ) { } } public class SocketApi { public void doSomething ( String username , String password ) { } } 3 Modules ( each one in