Android Library Project - can't find class from library project at runtime?
<p>I'm trying to create an android library project so I can make a lite and full version of my app with shared code. Following the directions here:</p>

<pre><code>http://developer.android.com/guide/developing/projects/projects-eclipse.html
http://blog.donnfelker.com/2010/08/05/howto-android-full-and-lite-versions/
</code></pre>

<p>Running my lite version throws a ClassNotFoundException at runtime because it cannot find the activity class from the shared project. It's as if the project linking (properties -> java build path -> projects -> add) isn't actually including any of the .class files at runtime.</p>

<p>Anyone else running into this problem? I don't want to export a .jar from my library project because with this other method we can share activities and such which is ideal. The manifest of my "lite" project, which references the library project activity:</p>

<pre><code>&lt;application 
  android:name="com.me.test.lib.App"&gt;
  &lt;activity 
    android:name="com.me.test.lib.ActivityMain" &gt;
</code></pre>

<p>It can't find either the App class or the ActivityMain class which are part of the library project.</p>

<p>Thanks</p>

<hr>

<p>The exception - the path in the ComponentInfo looks wrong, should it be nested like that?</p>

<pre><code>04-29 16:49:01.759: ERROR/AndroidRuntime(2349): 
  java.lang.RuntimeException: Unable to instantiate activity
  ComponentInfo{
    com.me.test.lite/com.me.test.lib.ActivityMain}: 
    java.lang.ClassNotFoundException: com.me.test.lib.ActivityMain 
    in loader dalvik.system.PathClassLoader[/data/app/com.me.test.lite-2.apk]
</code></pre>
