2

我正在开发一个在构建服务器上使用 ant 编译的 Android 项目。它有几个库项目。自 Android sdk 更新以来,没有构建工作。它因以下错误而退出

请在下面找到日志

[dex] Converting compiled files and external libraries into <project>/bin/classes.dex...
INFO  -
[dx] UNEXPECTED TOP-LEVEL EXCEPTION:
[dx] java.lang.ArrayIndexOutOfBoundsException: 3158
[dx]     at com.android.dx.merge.IndexMap.adjustString(IndexMap.java:112)
[dx]     at com.android.dx.merge.IndexMap.adjust(IndexMap.java:212)
[dx]     at com.android.dx.merge.DexMerger$7.read(DexMerger.java:505)
[dx]     at com.android.dx.merge.DexMerger$7.read(DexMerger.java:499)
[dx]     at com.android.dx.merge.DexMerger$IdMerger.readUnsortedValues(DexMerger.java:333)
[dx]     at com.android.dx.merge.DexMerger$IdMerger.mergeUnsorted(DexMerger.java:302)
[dx]     at com.android.dx.merge.DexMerger.mergeAnnotations(DexMerger.java:499)
[dx]     at com.android.dx.merge.DexMerger.mergeDexBuffers(DexMerger.java:166)
[dx]     at com.android.dx.merge.DexMerger.merge(DexMerger.java:186)
[dx]     at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:300)
[dx]     at com.android.dx.command.dexer.Main.run(Main.java:232)
[dx]     at com.android.dx.command.dexer.Main.main(Main.java:174)
[dx]     at com.android.dx.command.Main.main(Main.java:91)

任何帮助表示赞赏。

4

1 回答 1

2

这是Android SDK的问题。

dex.disable.merger=true一种解决方法是使用project.properties

于 2013-02-01T13:21:21.913 回答