title: How do i fix this Kodein error: Expression 'kodein' cannot be invoked as a function. The function 'invoke()' is not found
body: <p>Here is the full error :  e: C:\Users\HP\AndroidStudioProjects\MoneyManager\app\src\main\java\com\cruxrepublic\moneymanager\ui\auth\LoginActivity.kt: (22, 28):<br />
  Expression 'kodein' cannot be invoked as a function. The function 'invoke()' is not found</p>
  <p>This is the block of code referred to in the error. i am new to dependency injection generally though, i would appreciate any assitance</p>
  <pre><code>class LoginActivity() : AppCompatActivity(), AuthListener, KodeinAware {
  
  override val kodein by kodein()
  private val factory by instance&lt;AuthViewModelFactory&gt;()
  private lateinit var authViewModel: AuthViewModel
  private lateinit var binding: ActivityLoginBinding
  
  override fun onCreate(savedInstanceState: Bundle?) {
      super.onCreate(savedInstanceState)
      binding= DataBindingUtil.setContentView(this,R.layout.activity_login)
      authViewModel = ViewModelProvider(this,factory).get(AuthViewModel::class.java)
      binding.authViewModel = authViewModel
      authViewModel.authListener = this
  
  }
  </code></pre>