Farhandroid/AndroidCleanArchitecture

error: [Dagger/MissingBinding]

Opened this issue · 1 comments

When it comes to run the app, ı get this issue

Here is the output

/Users/gulcekulahcioglu/AndroidStudioProjects/CleanArchMovie/app/build/generated/source/kapt/debug/com/deepwall/cleanarchmovie/CleanArchMovie_HiltComponents.java:126: error: [Dagger/MissingBinding] com.deepwall.domain.useCase.GetPopularMoviesUseCase cannot be provided without an @Inject constructor or an @Provides-annotated method.
public abstract static class SingletonC implements CleanArchMovie_GeneratedInjector,
^
com.deepwall.domain.useCase.GetPopularMoviesUseCase is injected at
com.deepwall.cleanarchmovie.presentation.screen.home.HomeViewModel(getPopularMoviesUseCase)
com.deepwall.cleanarchmovie.presentation.screen.home.HomeViewModel is injected at
com.deepwall.cleanarchmovie.presentation.screen.home.HomeViewModel_HiltModules.BindsModule.binds(vm)
@dagger.hilt.android.internal.lifecycle.HiltViewModelMap java.util.Map<java.lang.String,javax.inject.Provider<androidx.lifecycle.ViewModel>> is requested at
dagger.hilt.android.internal.lifecycle.HiltViewModelFactory.ViewModelFactoriesEntryPoint.getHiltViewModelMap() [com.deepwall.cleanarchmovie.CleanArchMovie_HiltComponents.SingletonC → com.deepwall.cleanarchmovie.CleanArchMovie_HiltComponents.ActivityRetainedC → com.deepwall.cleanarchmovie.CleanArchMovie_HiltComponents.ViewModelC]

Hi,
Sorry for this issue. But can you please clean and rebuild the project? If it still showing this issue please invalidate cache and restart android studio.
I hope this will solve the issue.