Unresolved reference problem


#1

adapter cannot be recognized


#2

I miss the imports from your code.
It should include smth like kotlinx.android.synthetic.main.activity_main.*