-2

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

[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 库,然后再次清理项目。

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

但仍然无法解决问题!

4

1 回答 1

0

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

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

于 2013-01-22T16:14:58.317 回答