title: Android - Deletes R.java file when importing google-play-services-lib
body: <p>I am working on a project in which I want to show a Map, for that I want to add <code>google-play-service-lib</code> but when I add it my <code>R.java</code> files gets deleted and not getting regenerated.</p>
  
  <p>I tried adding <code>google-play-service-lib</code> into build path. After adding everything goes ok. But, when I run the project it gives an error says, <code>java.lang.NoClassDefFoundError: com.google.android.gms.R$styleable</code></p>
  
  <p>And when I add it into the project, <code>R.java</code> gets deleted. I tried number of permutations and combinations which I found on <code>google</code> and <code>SO</code>. But there is no feasible solution, which solves my problem.</p>
  
  <p>Please help me out for this..!!</p>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  &gt;
  
  &lt;fragment
   android:id="@+id/map_gle"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   class="com.google.android.gms.maps.SupportMapFragment"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>