Android library - ClassDefNotFoundError - class not in classes.dex
<p>I have an Android library (Java code) that I share among multiple Android application projects using Eclipse.  For application projects I've created in the past I'm able to reference the Android library and use it at runtime no problem.  But now for any new Android application project I create with references to my library, I get ClassDefNotFoundErrors whenever I reference classes in the library at runtime.</p>

<p>This is only a problem for Android libraries; for general Java libraries I'm still able to reference them from new Android application projects no problem.</p>

<p>Using dex2jar I found that in my application's classes.dex file the library's classes are <em>not</em> present.  Whereas for my older application projects where everything works, the library's classes <em>are</em> present in classes.dex.</p>

<p>Note that the working-case apps and the non-working-case apps both reference the same Eclipse project on disk.  So the problem is not in the library eclipse project, but rather in the application Eclipse project.</p>

<p>Can anyone tell me what I might be doing wrong?  Or more generally how to debug the process by which Eclipse creates the Android application's classes.dex?</p>

<p>Here's a screenshot of the application project, referencing my "testlib" Android library project. I've tried moving the reference up and down the list, checking the checkbox, etc.
<img src="http://i47.tinypic.com/2ntzord.png" alt=""></p>

<p>Thanks,
Dave</p>
