我有一个用于外部 JAR 的 android 应用程序,当尝试部署到设备或模拟器时,我开始出现此错误。
[2012-12-07 00:06:17 - testsuite] Installation error: INSTALL_FAILED_DEXOPT
[2012-12-07 00:06:17 - testsuite] Please check logcat output for more details.
[2012-12-07 00:06:17 - testsuite] Launch canceled!
和 logcat 输出
12-07 00:06:16.251: E/dalvikvm(404): Out-of-order method_idx: 0xffff then 0x1
12-07 00:06:16.251: E/dalvikvm(404): Trouble with item 3934 @ offset 0x6aead0
12-07 00:06:16.251: E/dalvikvm(404): Swap of section type 2006 failed
12-07 00:06:16.261: E/dalvikvm(404): ERROR: Byte swap + verify failed
12-07 00:06:16.281: E/dalvikvm(404): Optimization failed
12-07 00:06:16.301: W/installd(34): DexInv: --- END '/data/app/com.xxx.testsuite-1.apk' --- status=0xff00, process failed
12-07 00:06:16.301: E/installd(34): dexopt failed on '/data/dalvik- cache/data@app@com.xxx.testsuite-1.apk@classes.dex' res = 65280
该错误似乎与外部 JAR 之一有关,如果我将此 JAR 移动到它可以工作的 eclipse 项目(但我不想这样做)
任何想法如何追查这个问题?