title: "R cannot be resolved to a variable" android error
body: <p>I have freshly installed eclipse 3.8 and android sdk. When I create a new project I get error <code>R cannot be resolved to a variable</code> in <code>MainActivity.java</code>. <code>R.java</code> is missing and instead I have <code>BuildConfig.java</code> in gen folder. Based on suggestions given on similar questions I tried followings but no success.</p>
  
  <ol>
  <li>Reinstalled ADT</li>
  <li>Cleaned the project</li>
  <li>Restart eclipse</li>
  </ol>
  
  <p>Kindly help.</p>