title: When I add a library, R file is removed
body: <p>When I add a library, the R file is removed and I get the <em>"R cannot be resolved to a variable"</em> error.</p>
  
  <p>This happens when I add the 
  <a href="https://github.com/JakeWharton/Android-ViewPagerIndicator" rel="nofollow"><code>Android-ViewPagerIndicator</code></a> library by marking it as a library in its properties
  and then add it to my project.</p>
  
  <p>I have cleaned and rebuilt the project, but still the R file doesn't appear in the <code>/gen</code> folder</p>
  
  <hr>
  
  <p>The library's <code>android-support-v4.jar</code> file was not the same as my project's, because its size is different by 200KB (600KB). I replaced the library's <code>android-support-v4.jar</code> with my project file; without this I get lot of errors!</p>