title: Eclipse error: R cannot be resolved to a variable
body: <p>I am getting this classic error in Eclipse IDE. I am bored of Eclipse's bugs. They driving me mad.</p>
  
  <p>I almost tried everything which suggested as solution (by Googling). None of them worked.</p>
  
  <p>My project was working normally but not code changes.</p>
  
  <p>I see that my code changes does not acting on my app (on AVD) then I cleaned my project (under <code>Project &gt; Clean...</code>). <code>R.java</code> file was gone and res folder was empty.</p>
  
  <p>Now I am getting that error: <code>R cannot be resolved to a variable.</code></p>
  
  <p>What should I do?</p>
  
  <p>And also I tried to delete project and create again with <code>Android Project from Existing Code</code> I've backed-up before. It already gives same error after cleaning.</p>
  
  <p>Any ideas would be appreciated.</p>