-2

enter image description hereby instance() showing red line after updating android studio 4

private val factory: SelectHospitalViewModelFactory by instance()

Sunil Kumar
  • 127
  • 2
  • 8

1 Answers1

0

enter image description herestep 1- Setting-> Kotlin Compiler" enter image description here »

step 2- could you please disable new type inference in IDE by unchecking checkbox "Enable new type inference algorithm..." in Preferences -> Kotlin Compiler

Sunil Kumar
  • 127
  • 2
  • 8