-1

I opened the project now, that I 've been working on for past few weeks. And all of a sudden R seems as an error, and is underlined with red. R as in:

 `setContentView(R.layout.activity_quotes2);`

What is the best possible fix and what is causing this?

OBX
  • 6,044
  • 7
  • 33
  • 77

3 Answers3

2

Try to rebuild the project. Build->Rebuild.

Marija Milosevic
  • 516
  • 4
  • 16
1

Re-build the project.

This happens quite commonly in Android Studio. I'm not sure when the bug will be fixed because it's been this way for a long time now.

adao7000
  • 3,632
  • 2
  • 28
  • 37
0

You need check all layouts in your project. In some place you has and error or You can check the SDK installed in your computer. Try update.

Josué H.
  • 1,171
  • 3
  • 15
  • 35