title: R.java not getting generated properly for Android Library Application
body: <p>I have created a simple Android Library application with just 1 activity containing a TextView. It works fine, but when I mark it as a library and reference in another application, it is giving errors when I am trying to get the Text View using findViewById(R.id.welcome_textview).</p>
  
  <p>It generated R.java, but in the second app where I am referencing the library, it does not contain the id field. Here are the both R.java files that are getting generated: - </p>
  
  <p>Library Application</p>
  
  <pre><code>    /* AUTO-GENERATED FILE.  DO NOT MODIFY.
   *
   * This class was automatically generated by the
   * aapt tool from the resource data it found.  It
   * should not be modified by hand.
   */
  
  package com.example.mylibrary;
  
  public final class R {
      public static final class attr {
      }
      public static final class drawable {
          public static final int icon=0x7f020000;
      }
      public static final class id {
          public static final int welcome_textview=0x7f050000;
      }
      public static final class layout {
          public static final int main=0x7f030000;
      }
      public static final class string {
          public static final int app_name=0x7f040001;
          public static final int hello=0x7f040000;
      }
  }
  </code></pre>
  
  <p>Same file in the other Application</p>
  
  <pre><code>/* AUTO-GENERATED FILE.  DO NOT MODIFY.
   *
   * This class was automatically generated by the
   * aapt tool from the resource data it found.  It
   * should not be modified by hand.
   */
  
  package com.example.mylibrary;
  
  public final class R {
      public static final class attr {
      }
      public static final class drawable {
          public static final int icon=0x7f020000;
      }
      public static final class layout {
          public static final int main=0x7f030000;
      }
      public static final class string {
          public static final int app_name=0x7f040001;
          public static final int hello=0x7f040000;
      }
  }
  </code></pre>
  
  <p>Where am I going wrong?</p>