问题描述
我搜索了很多这个例外,没有一个线程帮助我。
我有这个例外:
无法执行dex:多个dex文件定义Ljavax / ws / rs / core / MultivaluedMap;
转换为Dalvik格式失败:无法执行dex:多个dex文件定义Ljavax / ws / rs / core / MultivaluedMap;
当我在android中添加jersey jar到我的'libs'时,我得到了这个例外b
$ b
某些奇怪的东西
当我删除这个jar jersey-core-1.17
,例外情况,但是当classdefnotfound异常时,我开始得到另一个异常。
我在libs文件夹中添加了jar,并将它们添加到了java bath配置中。 >
我尝试清理并重新创建并删除bin和gen文件夹并重新启动eclipse并重新启动Windows,但没有任何单词
请帮助
note
我使用这个问题添加了我的jars ,它可能是 jsr311-api-1.1.1.jar
。使用WinZip打开它,并删除 javax\ws\rs\core\MultiValuedMap.class
文件,保存该jar,并将新版本替换为 libs
文件夹。
I have searched a lot for this exception, none of the threads helped me.
I got this exception:
Unable to execute dex: Multiple dex files define Ljavax/ws/rs/core/MultivaluedMap;
Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Ljavax/ws/rs/core/MultivaluedMap;
I got this exception when I added jersey jars to my 'libs' in android
something weird
when I delete this jar jersey-core-1.17
, the exception goes but I start to get another exception when is classdefnotfound exception.
I added the jars in libs folder and I added them in java bath configuration.
I tried clean and rebuild and delete bin and gen folders and restart eclipse and restart windows but nothing word
please help
note
i added my jars using this question Adding a library/JAR to an Eclipse Android project , also i added more jars in previous projects using that question and it works good, so i don't think the problem in adding jars, right?
also
check there is no this single on the jar
edit
One of your other jar files also has MultivaluedMap
in it. You are going to have to search through those jars and remove any duplicates.
Looking through findJar.com, it is probably jsr311-api-1.1.1.jar
. Open it with WinZip and remove the javax\ws\rs\core\MultiValuedMap.class
file, save the jar, and replace the new version in your libs
folder.
这篇关于无法执行dex:多个dex文件定义Ljavax / ws / rs / core / MultivaluedMap异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!