I am trying an Android project using OpenSAML using Eclipse. I have added all the required jar files in the build path. Now, when I run the program as an Android Application the following error shows up:
[2012-11-18 11:52:59 - Dex Loader] Unable to execute dex: Cannot merge new index 67075 into a non-jumbo instruction!
[2012-11-18 11:52:59 - MyTestProgram] Conversion to Dalvik format failed: Unable to execute dex: Cannot merge new index 67075 into a non-jumbo instruction!
I googled a bit, but nothing came up. What could this error mean?
Just adding
jumboMode=true
didn't work for my gradle build. However this worked (quoted from Xavier in the adt-dev group as a reply to a bug filed in this area):One solution that I found that got it working for me was to add
dex.force.jumbo=true
to myproject.properties
.This was pointed out at: https://groups.google.com/forum/?fromgroups=#!topic/adt-dev/tuLXN9GkVas
This is assuming you are running ADT 21 as this feature wasn't available in previous versions.
I had the same problem, but in my case the "dex.force.jumbo=true" command doesn't solve the problem. I try to update JDK and JRE , and that solve the problem.
Hope this answer help
The same problem...just put
in the first line of project.properties
Adding some explanation:
This happens when Eclipse tries to incrementally build, when a change increases the number of string constants in the application. The original dex had non-jumbo instructions, and the new dex that's being merged into it has jumbo instructions. Doing a clean will show that it works when you build from scratch.
As long as the number of strings in your application is monotonically increasing, incremental builds will work going forward.
I had the same problem, but my IDE was IntelliJ IDEA 13. In that version, the
dex.force.jumbo
instruction in theproject.properties
file is ignored.To enable it, just go to Settings | Compiler | Android DX and select the Force jumbo mode option.
Hope it helps (this is the only SO-related question I have been able to find).