title: Cannot use newer Dagger 2.11 API in Android
body: <p>I am trying to import Dagger 2 into a brand new project on Android Studio and having a look at the various guides and documentation, I am unable to use <code>DaggerAppComponent</code> </p>
  
  <p>My Gradle settings are as follows: </p>
  
  <p><strong>build (Project)</strong></p>
  
  <pre><code>buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:2.3.3'
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          jcenter()
      }
  }
  </code></pre>
  
  <p><strong>build (Module: app)</strong></p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 25
      buildToolsVersion "25.0.3"
  
      defaultConfig {
          applicationId "com.raywenderlich.todolist"
          minSdkVersion 19
          targetSdkVersion 25
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:appcompat-v7:25.3.1'
      compile 'com.android.support:design:25.3.1'
  
      //Dagger 2
      compile 'com.google.dagger:dagger:2.11'
      compile 'com.google.dagger:dagger-android:2.11'
      annotationProcessor 'com.google.dagger:dagger-android-processor:2.11'
      annotationProcessor 'com.google.dagger:dagger-compiler:2.11'
  }
  </code></pre>
  
  <p>The in my <code>TodolistApplication.java</code> class: I have this: </p>
  
  <pre><code>      @Override
    public void onCreate() {
      super.onCreate();
  
      DaggerAppComponent
              .builder()
              .application(this)
              .build()
              .inject(this);
    }
  </code></pre>
  
  <p>However Android Studio shows the following error: </p>
  
  <blockquote>
    <p>Error:(21, 5) error: cannot find symbol variable DaggerAppComponent</p>
  </blockquote>
  
  <p>I have tried rebuilding the project and importing various <code>dagger</code> files, however nothing seems to have worked. </p>