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) { }