kotlin - resolve error in DataBindingUtil.setContentView()
Use:
var binding : ActivityHomeBinding = DataBindingUtil.setContentView(this, R.layout.activity_home)
DataBindingUtil.setContentView
is returning the binding of the particular layout file passed in as parameter.