error: cannot find symbol @dagger.hilt.InstallIn(value = {ApplicationComponent.class})
ApplicationComponent
is Deprecated in Dagger Version 2.30
ApplicationComponent
removed in Dagger Version 2.31
Alternatively SingletonComponent
should be used instead of ApplicationComponent
@Module
@InstallIn(SingletonComponent::class)
class RoomModule() {
. . .
}
ApplicationComponent is renamed to SingletonComponent