Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 486
pyleaf Avatar asked May 29 '10 07:05

pyleaf


2 Answers

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.

like image 179
Matt Huggins Avatar answered Oct 02 '22 15:10

Matt Huggins


I think you use Project1 as Library. So, when you export jar file you should unselect AndroidManifest.xml on "Select the resource to export".

like image 28
duongvanthai Avatar answered Oct 02 '22 17:10

duongvanthai