📜  未找到 applicationcomponent hilt - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:36.350000             🧑  作者: Mango

代码示例1
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() {
   . . .
}