Not able to access elements with kotlin in android studio
I am new to android studio and wanted to make a pretty basic app. The problem is after creating an xml file and giving it id as btnApply, i tried to print something when it gets clicked. I think the code is correct as I have been following a youtube tutorial, but something else like my settings is not allowing me to access the xml file elements. Any fixes??
package com.example.applicationone
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log...