0

我在我的应用程序中使用的库中使用 ActionBarLibrary

当我尝试编译时收到此消息

[2013-01-28 16:09:46 - Dex Loader] 无法执行 dex:多个 dex 文件定义 Lcom/actionbarsherlock/R$attr;[2013-01-28 16:09:46 - comfree] 转换为 Dalvik 格式失败:无法执行 dex:多个 dex 文件定义 Lcom/actionbarsherlock/R$attr;

4

3 回答 3

0

As asked here, I was facing the exact same error yesterday. I pinpointed the cause of the error to /bin/classes. If I deleted the /classes dir before running the app, the app would compile and run. Of course, when I tried to actually export the app, the /classes dir would come back and along with it the error.

The solution to my problem was to install the latest version of Eclipse. You will then need to install the latest version of the ADT but all the Android versions you have downloaded earlier for the other Eclipse installation will be detected and used for this one as well. When I export or run the app through Eclipse, the /classes folder does not appear now.

于 2013-02-07T21:47:03.030 回答
0

右键单击项目以转到项目属性>>java构建路径>>选择顺序和导出然后取消选择除android4.0之外的所有内容或您拥有的所有内容然后清理并构建您的项目,现在错误不会再次出现..

于 2014-05-12T17:54:57.163 回答
0

我的问题的解决方案是我删除了我复制粘贴在项目的 lib 文件夹中的 jar 文件。我在构建路径中明确导入了外部 jar

于 2015-05-20T19:17:19.393 回答