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

来源:互联网 发布:windows开源软件 编辑:程序博客网 时间:2024/05/18 21:41

今天晚上打开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.
最终解决了问题
0 0