title: Unresolved reference: DaggerTestComponent (Kotlin with Dagger for Test)
body: <p>When we use Dagger and Kotlin, we'll need the following in our build.gradle dependency</p>
  
  <pre><code>kapt 'com.google.dagger:dagger-compiler:2.0'
  compile 'com.google.dagger:dagger:2.0'
  provided 'org.glassfish:javax.annotation:10.0-b28'
  </code></pre>
  
  <p>As stated in <a href="http://www.beyondtechnicallycorrect.com/2015/12/30/android-kotlin-dagger/" rel="nofollow noreferrer">http://www.beyondtechnicallycorrect.com/2015/12/30/android-kotlin-dagger/</a></p>
  
  <p>When I try to perform testing using Dagger, and generate the <code>DaggerTestComponent.builder()</code> as per <a href="https://labs.ribot.co.uk/fast-and-reliable-ui-tests-on-android-17c261b8220c#.o3efc5knx" rel="nofollow noreferrer">https://labs.ribot.co.uk/fast-and-reliable-ui-tests-on-android-17c261b8220c#.o3efc5knx</a> or even <a href="https://medium.com/@fabioCollini/android-testing-using-dagger-2-mockito-and-a-custom-junit-rule-c8487ed01b56#.hxtytfns3" rel="nofollow noreferrer">https://medium.com/@fabioCollini/android-testing-using-dagger-2-mockito-and-a-custom-junit-rule-c8487ed01b56#.hxtytfns3</a>, in Kotlin language, but have the below error</p>
  
  <pre><code>Error:(14, 25) Unresolved reference: DaggerTestComponent
  </code></pre>
  
  <p>I found <a href="https://stackoverflow.com/a/36231516/3286489">https://stackoverflow.com/a/36231516/3286489</a> which explain how to get DaggerTestComponent generated, and try put the below in my dependency.</p>
  
  <pre><code>androidTestApt 'com.google.dagger:dagger-compiler:2.0.1'
  </code></pre>
  
  <p>Apparently, I think this is for Java and not Kotlin, so the issue persist. Is there a Kotlin version of it? How to get my <code>DaggerTestComponent</code> generated in my Kotlin project?</p>