您的位置:首页 > 移动开发 > Android开发

Unable to execute dex: Multiple dex files define Lcom/xj/util/R$drawable

2016-05-31 21:30 531 查看
今天晚上打开eclipse工程出现了这样一个bug:

[2016-05-31 21:31:21 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/xj/util/R$drawable;

[2016-05-31 21:31:21 - SACS] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/xj/util/R$drawable;

我在百度了一下
http://stackoverflow.com/questions/7870265/unable-to-execute-dex-multiple-dex-files-define-lcom-myapp-rarray
看了一下这篇博客,按照他的方法,

Similar issues have been reported and I have tried the suggestions there including

Restarting
Eclipse
.
Cleaning the project and rebuild - Disable "Project->Build Automatically" option, then "Clean" and "Build" project, then try to run. reset "Build Automatically" option to On
Re-installing the
Android
Developer
Tools
Re-installing Eclipse (updated to the latest version 3.7.1)
Created a new project importing from the file system
Created a new project from subversion.

最终解决了问题
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  android bug