If you are still experiencing problems with ABS, this might be helpful:
- Creating a new project from scratch worked fine with ABS & support lib but my existing projects would not work after upgrading ADT, no matter what (ClassNotFoundException for main Activity)
- I added the newest version of the support library to the ABS library project and the referencing projects but the exception still occurred
- Finally I compared all configuration files of the working new project and my existing projects and found the following difference:
Existing projects:
<classpath>
<classpathentry kind="src" path="src"/><classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
Newly created (working) project:
<classpath>
<classpathentry kind="src" path="src"/><classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
Note that the attribute exported
is set to true on different nodes in the XML files. Adjusting the XML file in my existing project fixed the problem for me.
Hope this helps others not waste as much time with it as I did :)
Edit: code formatting