It has worked fine till now, but I apparently touched something and something happened.
Android Studio did not found R.id.**** and R.layout.****.
What do I need to do to resolve the problem?
I got the same error and just found out I imported automatically android.R
. I just had to remove it.
Check if you have import android.R
at the top of your file.
check build.gradle(app). if there is not apply plugin: 'kotlin-android-extensions
' on top of page include it. That works for me.
or type id 'kotlin-android-extensions'
instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With