“转换为 Dalvik 格式失败,错误 1"在外部 JAR 上 [英] "Conversion to Dalvik format failed with error 1" on external JAR

查看:50
本文介绍了“转换为 Dalvik 格式失败,错误 1"在外部 JAR 上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 Eclipse 中的 Android 应用程序中,我收到以下错误.

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 文件添加到我的项目时才会出现此错误.我搜索了很长时间以寻找可能的解决方案,但没有一个可能的解决方案有效.

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.

我什至尝试更改为 Android 1.6 而不是 1.5(我使用的当前版本).

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.jarandroid_maps_lib-1.0.2

从其中一个 JAR 文件中删除这个包解决了这个问题.

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

这篇关于“转换为 Dalvik 格式失败,错误 1"在外部 JAR 上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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