title: R cannot be resolved error when using ActionBarSherlock
body: <p>I am trying to use Jake Wharton's <a href="http://actionbarsherlock.com/" rel="noreferrer">ActionBarSherlock</a> to support actionbars in android projects all the way down to 1.6</p>
  
  <p>I'm getting started using the <a href="http://www.youtube.com/watch?feature=player_embedded&amp;v=avcp6eD_X2k" rel="noreferrer">video</a> provided on the <a href="http://actionbarsherlock.com/faq.html" rel="noreferrer">faq's page</a> but after 2:25 in the video, when he imports the project, I get a whole huge list of >200 compilers errors, mostly dealing with some @override stuff. I fix most of those errors by:</p>
  
  <p>Right click on the project>properties>Java Compiler>compiler compliance level: and I set it to 1.6.</p>
  
  <p>This forces a re-build and suddenly I am down to just 54 errors. Most of them are "R cannot be resolved to a variable" but the last 5 are all "the import com.actionbarsherlock.R cannot be resolved". I have searched around and the common ways of solving this worked out as follows:</p>
  
  <p>"<em>Make sure your resources are not in error</em>" -- I checked and there are no problems with anything in the /res folder</p>
  
  <p>"<em>Make sure you aren't importing android.R</em>" -- I am not. I have:</p>
  
  <pre><code>import com.actionbarsherlock.R
  </code></pre>
  
  <p>It occurred to me that the package name might be incorrect, but it isn't.</p>
  
  <p>"<em>Simply clean the project</em>" -- Have done this many times to no effect</p>
  
  <p>"<em>Make sure eclipse is able to generate R files at all</em>" -- It can in the blank test project I made just now</p>
  
  <p>And some other fixes which are more specific to ActionBarSherlock:</p>
  
  <p>"<em>Make sure your targetSDK is 11 or higher</em>" -- It is set to 13</p>
  
  <p>"<em>Make sure the project is a library project</em>" -- It is</p>
  
  <p>How can I get rid of these errors?</p>