在eclipse中构建项目时的编译错误

时间:2012-12-13 21:29:00

标签: android eclipse

我正在使用android应用程序,使用我的eclipse工作区中存在的另外两个项目的jar文件! android应用程序是api level 16 android 4.1.2。在编译之前,我通过android sdk管理器升级了android sdk,我认为有必要进行所有可用的更新。之后,eclipse控制台在编译应用程序时给出以下错误:android project:

[2012-12-14 01:51:18 - OcrServiceSampleApp] Dx 1 error; aborting
[2012-12-14 01:51:18 - OcrServiceSampleApp] Conversion to Dalvik format failed with error 1
[2012-12-14 01:56:55 - Dex Loader] Unable to execute dex: Multiple dex files define Lmicrosoft/hawaii/hawaiiClientLibraryBase/ConditionalCompilation;
[2012-12-14 01:56:55 - OcrServiceSampleApp] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lmicrosoft/hawaii/hawaiiClientLibraryBase/ConditionalCompilation;
[2012-12-14 02:01:57 - Dex Loader] Unable to execute dex: Multiple dex files define Lmicrosoft/hawaii/hawaiiClientLibraryBase/ConditionalCompilation;
[2012-12-14 02:01:57 - OcrServiceSampleApp] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lmicrosoft/hawaii/hawaiiClientLibraryBase/ConditionalCompilation;
[2012-12-14 02:07:56 - Dex Loader] Unable to execute dex: Multiple dex files define Lmicrosoft/hawaii/hawaiiClientLibraryBase/ConditionalCompilation;
[2012-12-14 02:07:56 - OcrServiceSampleApp] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lmicrosoft/hawaii/hawaiiClientLibraryBase/ConditionalCompilation;
[2012-12-14 02:17:04 - Dex Loader] Unable to execute dex: Multiple dex files define Lmicrosoft/hawaii/hawaiiClientLibraryBase/ConditionalCompilation;
[2012-12-14 02:17:04 - OcrServiceSampleApp] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lmicrosoft/hawaii/hawaiiClientLibraryBase/ConditionalCompilation;
[2012-12-14 02:17:51 - Dex Loader] Unable to execute dex: Multiple dex files define Lmicrosoft/hawaii/hawaiiClientLibraryBase/ConditionalCompilation;
[2012-12-14 02:17:51 - OcrServiceSampleApp] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lmicrosoft/hawaii/hawaiiClientLibraryBase/ConditionalCompilation;

我查看了堆栈溢出,尝试以下解决方案查看其他帖子:

- 清理我的项目。

- 从工作区删除我的项目再次添加,然后再次清理。

- 从bin文件夹中删除dexed libs,然后再次清理项目。

- 删除外部罐子。 android jar也是。然后使用项目修复,然后再次清理。

但仍然无法解决问题!

1 个答案:

答案 0 :(得分:0)

创建一个空项目,添加您尝试使用的库/ jar,因此导出空项目并查看会发生什么。

所以你会发现问题出在哪里。