Android: R cannot be resolved after adding a new class
<p>I get the following error in eclipse: <code>r cannot be resolved</code>. However that appeared just after I added my own library as a resource to my project. It seems that eclipse cannot resolve which R to use, the library one or the project one. Note also that the library is marked with the <em>is library</em> check box in the project set-up. Also whenever I remove my library from the reference list eclipse does not show any errors, but upon compiling logCat shows a <code>Class Not Found</code> exception. How do I fix this issue?
Thanks</p>
