by instance() showing red line after updating android studio 4
private val factory: SelectHospitalViewModelFactory by instance()
by instance() showing red line after updating android studio 4
private val factory: SelectHospitalViewModelFactory by instance()
step 1-
Setting-> Kotlin Compiler"
»
step 2- could you please disable new type inference in IDE by unchecking checkbox "Enable new type inference algorithm..." in Preferences -> Kotlin Compiler