Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio not found R.id.****

It has worked fine till now, but I apparently touched something and something happened.
Android Studio did not found R.id.**** and R.layout.****.

http://i.stack.imgur.com/EVZun.png

What do I need to do to resolve the problem?

like image 351
Ron Avatar asked Jun 15 '15 15:06

Ron


2 Answers

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.

like image 70
Powkachu Avatar answered Oct 05 '22 22:10

Powkachu


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.

like image 41
qqqwerqqq Avatar answered Oct 05 '22 23:10

qqqwerqqq