How do I configure IntelliJ/gradle to use dagger 2.0

后端 未结 8 2320
野的像风
野的像风 2020-12-28 16:01

I have a gradle project and I want to use dagger 2.0 in it. I don\'t know how to configure IntelliJ and gradle to generate files and let IntelliJ find them?

My build

8条回答
  •  一个人的身影
    2020-12-28 16:07

    You'll have to manually enable annotation processing for IntelliJ: in Settings… → Build, Execution, Deployment → Compiler → Annotation Processors, check Enable annotation processing and Obtain processors from project classpath.

提交回复
热议问题