如何修复"错误产生最终的归档文件:重复的条目:AndroidManifest.xml中" [英] How to fix "Error generating final archive: duplicate entry: AndroidManifest.xml"

查看:147
本文介绍了如何修复"错误产生最终的归档文件:重复的条目:AndroidManifest.xml中"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我把两个项目到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.

这篇关于如何修复"错误产生最终的归档文件:重复的条目:AndroidManifest.xml中"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆