title: How do I get Dagger and Butterknife working with Gradle?
body: <p>I had my project working great with <a href="http://jakewharton.github.io/butterknife/">Butterknife</a> to do view injection. But I then needed to add <a href="http://square.github.io/dagger/">Dagger</a> in order to inject dependencies.</p>
  
  <p>I added the <a href="https://github.com/Jimdo/gradle-apt-plugin">Annotation Processor Tool</a> Gradle plugin with the appropriate Dagger requirement (Only showing the modified parts for brevity);</p>
  
  <pre><code>buildScript {
      repositories {
          maven {
              url "https://oss.sonatype.org/content/repositories/snapshots/"
          }
      }
      dependencies {
          ...
          classpath 'com.jimdo.gradle:gradle-apt-plugin:0.2-SNAPSHOT'
      }
  }
  
  apply plugin: 'apt'
  
  dependencies {
      apt "com.squareup.dagger:dagger-compiler:${daggerVersion}"
  
      ...
  }
  </code></pre>
  
  <p>At this point now when I build and run the application the properties marked with the <code>@InjectView</code> annotation are not getting injected with the following debug messages emitted by Butterknife;</p>
  
  <pre><code>D/ButterKnife﹕ Looking up view injector for com.example.MainActivity
  D/ButterKnife﹕ Not found. Trying superclass com.example.FactListAbstractActivity
  D/ButterKnife﹕ Not found. Trying superclass android.app.Activity
  </code></pre>