title: Dagger 1.x @Inject throws an IllegalArgumentException
body: <p>I want to replace our component registry (with dexfile class loader magic) with an dependency injection framework for Android.
  The first try is dagger. </p>
  
  <p>When trying I get the following error:</p>
  
  <pre><code>11-06 13:05:41.040  16269-16269/com.daggertoolkitexample E/AndroidRuntime﹕ FATAL EXCEPTION: main
  java.lang.RuntimeException: Unable to start activity ComponentInfo{daggertoolkitexample/com.dagger.MyActivity}: java.lang.IllegalArgumentException: No inject registered for members/com.dagger.MyActivity. You must explicitly add it to the 'injects' option in one of your modules.
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2295)
          ...
   Caused by: java.lang.IllegalArgumentException: No inject registered for members/com.dagger.MyActivity. You must explicitly add it to the 'injects' option in one of your modules.
          at dagger.ObjectGraph$DaggerObjectGraph.getInjectableTypeBinding(ObjectGraph.java:302)
          at dagger.ObjectGraph$DaggerObjectGraph.inject(ObjectGraph.java:279)
          at com.dagger.MyApplication.inject(MyApplication.java:39)
          at com.dagger.MyBaseActivity.onCreate(MyBaseActivity.java:18)
          at com.dagger.MyActivity.onCreate(MyActivity.java:22)
          at android.app.Activity.performCreate(Activity.java:5372)
          at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1104)
          ...
  </code></pre>
  
  <p>I can fix it if i inject my activity in the @Module. Its work without exception.</p>
  
  <pre><code>@Module(
      library = true,
      injects = MyActivity.class)
  public class AuthManagementModul {...}`
  </code></pre>
  
  <p>But this is not that i want.
  I don´t can and want to know all users of my component.</p>
  
  <p><strong>Has everyone an idea what's wrong?</strong> </p>
  
  <p>Here is my example code:</p>
  
  <pre><code>public class MyBaseActivity extends ActionBarActivity {
  
    @Override protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      ((MyApplication) getApplication()).inject(this);
    }
  }
  </code></pre>
  
  <p>...</p>
  
  <pre><code>public class MyActivity extends MyBaseActivity {
  
    @Inject AuthManagement authManagement;
  
    ...
  }
  </code></pre>
  
  <p>...</p>
  
  <pre><code>public class MyApplication extends Application{
  
    private ObjectGraph graph;
  
    @Override
    public void onCreate() {
      super.onCreate();
      graph = ObjectGraph.create(new AuthManagementModul(this));
    }
  
    public void inject(Object object) {
      graph.inject(object);
    }
  }
  </code></pre>
  
  <p>...</p>
  
  <pre><code>@Module(
      library = true
  )
  public class AuthManagementModul {
  
    private final Application application;
  
    public AuthManagementModul(Application application) {
      this.application = application;
    }
  
    @Provides
    @Singleton
    AuthManagement provideAuthManagement() {
      return new AuthManagementImpl(application);
   }
  }
  </code></pre>