title: Java/IntelliJ not recognising the "Dagger" keyword for Dagger2 Components
body: <p>I'm probably missing something very basic here, so hopefully it's not a hard question.</p>
  
  <p>My equivalent of</p>
  
  <pre><code>CoffeeShop coffeeShop = DaggerCoffeeShop.create();
  </code></pre>
  
  <p>is not being recognised by the IDE (IntelliJ). <strong>This is a native Java project</strong>. The "<strong>Dagger</strong>CoffeShop" part is all red.</p>
  
  <p>The component is using this syntax:</p>
  
  <pre><code>@Component(modules = &lt;ModuleClassName&gt;.class)
  public interface CoffeeShop {
      // some methods.
      // does it matter what goes in here for it to recognise the component?
  }
  </code></pre>
  
  <p>The "ModuleClassName" is the name of a module annotated with @Module and includes @Provides methods.</p>
  
  <p>To get the libs I'm using this in Gradle:</p>
  
  <pre><code>compile 'com.google.dagger:dagger:2.4'
  compile 'com.google.dagger:dagger-compiler:2.4'
  </code></pre>
  
  <p>Is that all I need? I don't get any errors for any of the annotations, it's just this Dagger keyword it can't recognise. What am I missing?</p>
  
  <p>Any help or direction appreciated. I'm not finding the documentation to be that great for beginners like me.</p>