Dagger 2 component not generated

前端 未结 12 1556
走了就别回头了
走了就别回头了 2021-01-31 07:21

In my module, in my base Application class

component = DaggerCompClassComponent.builder()
                .classModule(new ModuleClass()).build();
12条回答
  •  无人及你
    2021-01-31 08:21

    I solved it by editing my dagger dependencies to this:

     implementation "com.google.dagger:dagger:${versions.dagger}"
     kapt "com.google.dagger:dagger-compiler:${versions.dagger}"
    

提交回复
热议问题