MainActivity.kt
class MainActivity : AppCompatActivity() {
// @Inject annotated fields will be provided by Dagger
@Inject
private lateinit var userManager: UserManager
@Inject
private lateinit var mainViewModel: MainViewModel
...
}
but Dagger does not support injection into private fields
In the 8. Injecting the graph into an Activity
but
Dagger does not support injection into private fields