-1

When I try to run a java project, a message appears after it finishes to run:

enter image description here

R cannot be resolved to a variable

I tried to clean the project and rebuild it but the error still remains.

JackLametta
  • 400
  • 1
  • 2
  • 21

2 Answers2

2

Check your xml files. you have an error somewhere in one of them. fix it then clean/build project.

DevJava
  • 396
  • 1
  • 7
0

In Android project the R class should be automatically generated after clean buid if your configuration is right.