0

I have an Android Kotlin project that I write in Android Studio 3.

I want to use a Dagger 2 component (say TestComponent) for my unit tests in the /test folder.

After rebuilding the project, I see that the DaggerTestComponent is not created (When the dagger components in the /java folder are generated successfully)

I read that this should be solved by adding

kaptTest "com.google.dagger:dagger-compiler:$dagger_version"

but it does not work.

Any suggestions?

dors
  • 5,802
  • 8
  • 45
  • 71
  • 1
    Have you looked into [this](https://stackoverflow.com/a/42796379/1083957)? – azizbekian Oct 28 '17 at 07:37
  • I changed generated/source/apt/ to generated/source/kapt/ and it worked. Thanks! – dors Oct 29 '17 at 21:45
  • Good! Seems like your questions is duplicate of [this](https://stackoverflow.com/q/42793505/1083957). What do you think of removing it? Or do you want it to be answered? – azizbekian Oct 29 '17 at 22:01

0 Answers0