无法执行DEX:多DEX文件中定义 [英] Unable to execute dex: Multiple dex files define

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

问题描述

我知道这个问题已经被问这里前几次。但我还没有看到任何可能的解决方案呢。 之前,我做到了项目的运行方式Android应用程序',如果我不打扫它,我收到以下错误,不得不重新启动Eclipse ......和清洗一遍。

I know this question has been asked here a few times before. But i haven't seen any possible solution yet. Before i make the project 'Run as Android Application' , if i do not clean it, i receive the following error and have to restart Eclipse ... and clean again.

Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define
     Lcom/jstun/core/attribute/MessageAttributeInterface;

com.jstun.core ...是我的src文件夹中的一部分,我当然无法将其删除。即使我删除包,另一个包将显示为类似的错误:

com.jstun.core... is a part of my src folder, of course i can't remove it. And even if i remove that package, another package will show up as an error like:

Unable to execute dex: Multiple dex files define
     Landroid/support/v4/app/ActivityCompatHoneycomb;

我已经看到了这个错误,因为更新到ADT 15,我使用的Eclipse伽利略在Ubuntu 你有什么想法?感谢您的任何答复!

I've seen this error since updating to ADT 15, i'm using Eclipse Galileo on Ubuntu Do you have any idea? Thanks for any reply!

推荐答案

这是一个构建路径问题。

  • 请确保您的bin文件夹不包括在你的构建路径。

  • Make sure your bin folder is not included in your build path.

右键点击你的项目 - >进入属性 - >构建路径。

Right click on your project -> go to properties -> Build Path.

确保蜂巢库是在库/ 文件夹,而不是在你的源文件夹。

Make sure that Honeycomb library is in your libs/ folder and not in your source folder.

中包括库库/ 分别在构建路径。

Include the libraries in libs/ individually in the build path.

顺便说一句,你可能希望在 Android的支持-V4带来库得到冰淇淋三明治的支持,而不是蜂窝支持库。

BTW, you may want to bring in the android-support-v4 library to get Ice Cream Sandwich support instead of the Honeycomb support library.

这篇关于无法执行DEX:多DEX文件中定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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