How do I include resources in an Android Library?
<p>I have an Android project. In it I include an Android library. The library contains an Activity that references resources (also contained within the library).</p>

<p>In my host project I extend the libraries activity. The code compiles, but when I run it I get a runtime exception stating that the extended project cannot find a layout resource:</p>

<pre><code>java.lang.NoClassDefFoundError: mylibrary.R$layout
</code></pre>

<p>My question is, how can I fix my library so that the referenced resources are included?</p>
