如何修复"错误产生最终的归档文件:重复的条目:AndroidManifest.xml中"条目、错误、文件、QUOT

2023-09-12 11:27:26 作者:范二先生。

我把两个项目到Eclipse中,被称为PROJECT1和Project2的。

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

PROJECT1是独立的,但Project2中必须依赖到Project。

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

当我建立Project2的,错误味精来是这样的:错误产生最终的归档文件:重复的条目:AndroidManifest.xml中

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

推荐答案

我想通了什么问题。我加入了一个JAR文件,该文件已经在它的Andr​​oidManifest.xml文件,这是相互矛盾的,我自己的项目的Andr​​oidManifest.xml文件。在我的情况的解决方案是重新生成JAR文件,确保其排除自己版本的Andr​​oidManifest.xml中,然后再有新版本的JAR文件到我的项目。您可能需要这样做后,清理项目。

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.