I followed the instructions here on how to create an Android library project, and use it in an Android application:
http://developer.android.com/guide/developing/ecl
It's actually a matter of file duplicity. You can't build a project that contains more than one instance of the same file. Due to the nature of an android project XML files are usually the first the negate a successful build.