Is there any way of making IntelliJ IDEA recognizing Dagger 2 generated classes in a Java project?
问题 Context I have started a personal project in java with Gradle as the build system and I want to use Dagger 2 as a DI. The main reason of doing that is to get used to that library and be able to use it easily in bigger projects. What have I tried I've managed to make the Google sample runs on IntelliJ IDEA Problem IntelliJ IDEA keeps telling me that it cannot resolve the generated class (in this case DaggerCoffeeApp_Coffee ). It's a bit annoying not to know if the written code is correct