Type mismatch: inferred type is but was expected

Issue I’m new to Kotlin and here is my problem: I use dataBinding in my app and When I want to set my variable from layout: <?xml version=”1.0″ encoding=”utf-8″?><layout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” xmlns:app=”http://schemas.android.com/apk/res-auto”> <data> <import type=”android.view.View”/> <variable name=”noteViewModel” type=”moeindeveloper.kotlinroomaac.ViewModel.NoteViewModel” /> </data>

Continue reading