title: How to reference an icon from a Library Project in Application's AndroidManifest.xml
body: <p>I am trying to use the same application icon for all applications derived from a Library Project.</p>
  
  <p>I thought that it would be as simple as implementing the advice provided <a href="https://stackoverflow.com/questions/6241429/how-to-reference-a-drawable-from-a-library-project-into-a-main-projects-layout-i/6241484#6241484">in this thread</a>, but unfortunately it doesn't work.</p>
  
  <p>What I did is add to the <code>&lt;manifest&gt;</code> tag in the application's <code>AndroidManifest.xml</code> the following line:</p>
  
  <pre><code>xmlns:mylib="http://schemas.android.com/apk/res/com.example.baseapp"
  </code></pre>
  
  <p>And a few lines down the same <code>AndroidManifest.xml</code> file, change the typical <code>@drawable/icon</code> to:</p>
  
  <pre><code>   &lt;application android:icon="@mylib:drawable/icon"&gt;
  </code></pre>
  
  <p>But it doesn't work!</p>
  
  <p>Instead, Eclipse tells me that:</p>
  
  <blockquote>
    <p>error: Error: No resource found that
    matches the given name (at 'icon' with
    value '@omlib:drawable/icon').</p>
  </blockquote>
  
  <p>Apparently, referencing drawables from a layout XML and the manifest XML are not the same.</p>
  
  <p>How do I reference an icon from a Library Project in Application's AndroidManifest.xml?</p>