Dagger not generating components for /test class

后端 未结 8 856
醉梦人生
醉梦人生 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:24

    Hi even after adding all gradle dependenices and annotations if it still doesnt work then you need to run assembleAndroidTest gradle script for this. Simply make an empty test case and run it. It will do the job for you. Cheers

提交回复
热议问题