Dagger not generating components for /test class

后端 未结 8 849
醉梦人生
醉梦人生 2020-12-04 20:57

I am following the guide here: https://github.com/ecgreb/dagger-2-testing-demo

I have the following setup in my app/src/main (the injection and @Provides code omitte

8条回答
  •  再見小時候
    2020-12-04 21:25

    If you are using kotlin use "kaptAndroidTest" to generate dagger component for android tests in your build.gradle file.

提交回复
热议问题