In my module, in my base Application class
component = DaggerCompClassComponent.builder() .classModule(new ModuleClass()).build();
If you are using Kotlin, make sure to add kapt (Kotlin annotation processor) Gradle plugin to your build script and use kapt Gradle dependency type instead of annotationProcessor for Dagger Compiler.
kapt
annotationProcessor
apply plugin: 'kotlin-kapt kapt deps.daggercompiler implementation deps.dagger