无法执行DEX:多DEX文件定义Ljavax / WS / RS /核心/ MultivaluedMap例外 [英] Unable to execute dex: Multiple dex files define Ljavax/ws/rs/core/MultivaluedMap exception

查看:233
本文介绍了无法执行DEX:多DEX文件定义Ljavax / WS / RS /核心/ MultivaluedMap例外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我寻觅了很多关于这个例外,没有一个线程的帮助了我。

I have searched a lot for this exception, none of the threads helped me.

我得到这个异​​常:

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;

我得到这个例外,当我在Android的加入球衣罐子到我的库

I got this exception when I added jersey jars to my 'libs' in android

当我删除这个jar 球衣的核心 - 1.17 ,异常的推移,但我开始是classdefnotfound异常时,获得另外的异常。

when I delete this jar jersey-core-1.17, the exception goes but I start to get another exception when is classdefnotfound exception.

我添加了罐子在libs文件夹和我说他们在Java浴配置。

I added the jars in libs folder and I added them in java bath configuration.

我试图清理,重建和删除bin和根文件夹,并重新启动Eclipse并重新启动Windows,但没有字

I tried clean and rebuild and delete bin and gen folders and restart eclipse and restart windows but nothing word

请帮忙

我用这个问题<一个加了我的罐子href=\"http://stackoverflow.com/questions/3642928/adding-a-library-jar-to-an-eclipse-android-project\">Adding库/ JAR到Eclipse Android项目,我还添加了previous项目更罐使用这个问题和它的作品好,所以我不认为这个问题在加入罐子,对吧?

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?

检查有没有这种单一的JAR

check there is no this single on the jar

推荐答案

您另外一个jar文件中也有 MultivaluedMap 在里面。你将不得不通过这些罐子来搜索并删除任何重复。

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.

findJar.com 来看,它是大概 JSR311的API-1.1.1.jar 。用WinZip打开它,删除的javax \\ WS \\ RS \\核心\\ MultiValuedMap.class 文件,保存在罐子,并在更换新版本的文件夹中。

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 /核心/ MultivaluedMap例外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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