"R cannot be resolved to a variable"?

Roger picture Roger · Oct 19, 2011 · Viewed 400.3k times · Source

In Eclipse, I've created a project from a source and now it shows errors - "R cannot be resolved to a variable". From what I found here, I had cleared and rebuilt the project, but still the R file doesn't appear in the /gen folder.

Any ideas?

Answer

Horrorgoogle picture Horrorgoogle · Oct 19, 2011

Dont worry. First you may clean the project, then run the project. If this does not work then follow the following links: