Dagger 2: @Component.Builder is missing setters for required modules or components: [appi.example.com.dagger.AppModule]`

前端 未结 3 901
失恋的感觉
失恋的感觉 2020-12-13 00:00

I\'m configuring the new Dagger Android module but I got this error Here\'s my Component:

@AppScope
@Component(modules = {AppModule.class, NetModule.class})
         


        
3条回答
  •  清歌不尽
    2020-12-13 00:40

    Remove the below code from the AppModule.class and rebuild the project

        @Provides
        @Singleton
        Application provideContext(SomeApplication application) {
            return application;
        }
    

提交回复
热议问题