我只是跟踪了正式的Hilt,并试图实现一个简单的字段注入,下面是MainActivity:import}: kotlin.UninitializedPropertyAccessException: lateinit property analytics has not been initializedMethodAndArgsCaller.run(RuntimeInit.java:592)
at com.an
我刚刚开始学习Hilt用于依赖项注入,并且使用了字段注入,即使我已经初始化了,lateinit属性someRandomString仍未初始化,但我仍会收到以下错误Code for AppmoduleAndroidEntryPoint private val TAG: String = "AppDebug"
super.onCreate(savedInstance
我正在尝试使用dagger hilt,我设置了所有的东西,但是当我尝试使用为我创建了依赖注入的对象时,我得到了错误:kotlin.UninitializedPropertyAccessException: lateinit property exoPlayer has not been initialized@Module
@InstallIn(ServiceComponentsetAudioAttributes(audioAttribute