"转换到的Dalvik格式失败,错误1"在外部JAR错误、格式、QUOT、Dalvik

2023-09-11 10:20:08 作者:倾覆世界ゞ只为了伱

在我在Eclipse的Andr​​oid应用程序,我得到了下面的错误。

In my Android application in Eclipse I get the following error.

意外的顶级例外:   java.lang.IllegalArgumentException:如果已经添加:Lorg / xmlpull / V1 / XmlPullParser;   ....   转换到的Dalvik格式失败,出现错误1

UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lorg/xmlpull/v1/XmlPullParser; .... Conversion to Dalvik format failed with error 1

当我一个特定的外部JAR文件添加到我的项目该错误才会出现。我搜索了很久了可能的解决方案,但没有一个可能的解决方案的工作。我甚至试图改变到Android 1.6,而不是1.5(我用的是最新版本)。

This error only appears when I add a specific external JAR file to my project. I searched for a long time for the possible solution, but none of the possible solutions work. I even tried to change to Android 1.6 instead of 1.5 (the current version I use).

推荐答案

我解决了这个问题。

这是一个JAR文件冲突。

This is a JAR file conflict.

看来我有包括相同的封装和类在我的构建路径两个JAR文件。

It seems that I have two JAR files on my buildpath that include the same package and classes.

smack.jar android_maps_lib-1.0.2

删除此包的JAR文件中的一个问题解决了。

Deleting this package from one of the JAR files solved the problem.