I have a layout with some views, one of them has an id title_whalemare
import kotlinx.android.synthetic.main.controller_settings.* import kotlinx.android.synthetic.main.view_double_text.* class MainSettingsController : BaseMvpController<MvpView, MvpPresenter>() { val title: TextView = title_whalemare override fun getLayout(): Int { return R.layout.controller_settings } }
I am trying to find it using kotlin extensions , but I can not, because I get the following error
None of the following candidates are applicable due to receiver type mismatch 
controller_settings.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/title_whalemare"/> </LinearLayout>
Where is my mistake?
source share