Unresolved reference: DaggerTestComponent (Kotlin with Dagger for Test)
问题 When we use Dagger and Kotlin, we'll need the following in our build.gradle dependency kapt 'com.google.dagger:dagger-compiler:2.0' compile 'com.google.dagger:dagger:2.0' provided 'org.glassfish:javax.annotation:10.0-b28' As stated in http://www.beyondtechnicallycorrect.com/2015/12/30/android-kotlin-dagger/ When I try to perform testing using Dagger, and generate the DaggerTestComponent.builder() as per https://labs.ribot.co.uk/fast-and-reliable-ui-tests-on-android-17c261b8220c#.o3efc5knx or