Alex Rivera | Logout

How to fix "Error generating final archive: duplicate entry: AndroidManifest.xml"

Asked 2010-05-29T07:19:34.880
35

I put two projects into Eclipse, called Project1 and Project2.

Project1 is independent, but Project2 must be dependent to Project1.

When I build the Project2, the error msg comes like this: Error generating final archive: duplicate entry: AndroidManifest.xml

Edit
Report

2 Answers

54

I figured out what the problem was. I included a JAR file that had an AndroidManifest.xml file in it, which was conflicting with my own project's AndroidManifest.xml file. The solution in my instance was to rebuild the JAR file, making sure it excluded its own version of AndroidManifest.xml, then to re-include the new version of the JAR file into my project. You might need to clean the project after doing this.

answered 2010-11-27T18:56:52.097
0

Cleaning the Project1 might help.

answered 2010-06-21T15:44:41.437

Your Answer