I recently split some code out into an Android library project. I added references to that project from my application project. I know get an error that states this "Error generating final archive: Found duplicate file for APK: AndroidManifest.xml". I am assuming this has something to do with the library project having an AndroidManifest.xml file as well. What do I need to do to get rid of this error.
If the library is not using any Android code it can be a plain jar and needs no manifest. If it does use Android code you still just package it up as a jar and reuse. This has all gotten much better with r14 of the SDK. Use that or the Android Maven Plugin for reusing Android code with the apklib project type.
As of 3.9.0-rc2 of the android mavne plugin you can also create an aar.