title: Cannot build actionbarsherlock: BuildConfig cannot be resolved to a variable
body: <p>I imported the actionbarsherlock folder into the workspace using &quot;Import -&gt; Existing Android Code Into Workspace&quot;. Then I ensured the following:</p>
  <ul>
  <li><p>In the manifest:</p>
  <p><code>&lt;uses-sdk android:minSdkVersion=&quot;7&quot; android:targetSdkVersion=&quot;16&quot;/&gt;</code></p>
  </li>
  <li><p>Properties -&gt; Android: Build target is API 16 (Android 4.1.2) and IsLibrary is checked.</p>
  </li>
  <li><p>Properties -&gt; Java Compiler: Compiler compliance level is set to 1.6.</p>
  </li>
  </ul>
  <p>And yet I'm getting a lot of <code>BuildConfig cannot be resolved to a variable</code> errors.</p>
  <p>I tried to clean all projects many times, and even restarted Eclipse several times. I even tried to add a BuildConfig class manually, but then there were still a lot of <code>R cannot be resolved to a variable</code> errors that I could not resolve.</p>
  <p>I've read dozens of answers (such as this one: <a href="https://stackoverflow.com/questions/8787288/r-cannot-be-resolved-error-when-using-actionbarsherlock?rq=1">R cannot be resolved error when using ActionBarSherlock</a> ), but nothing helps. Any help will be much appreciated.</p>