When I try to run my project on my android device I get the error "Conversion to Dalvik format failed: Unable to execute dex: Java heap space"
. I have imported the project from another computer where it was working properly.
I have been to Conversion to Dalvik format failed: Unable to execute dex: Java heap space and tried increasing the -XmsAm
and -XmxBm
but as I increase the values the problem continues until Eclipse won't start or I get an error that says: "Dex Loader] Unable to execute dex: Cannot handle conversion to jumbo index!"
Does anyone know any alternate solutions?
Edit: I tried making a new project and copy/pasting all the files over from the imported project and now have a new error. When I run it I get the error: "Installation error: INSTALL_FAILED_DEXOPT"
Logcat says this:
11-08 15:14:31.317: E/dalvikvm(3041): ERROR: Can't byte swap: bad dex version (0x30 33 36 00)
11-08 15:14:31.317: E/dalvikvm(3041): ERROR: Byte swap + verify failed
11-08 15:14:31.317: E/dalvikvm(3041): Optimization failed
11-08 15:14:31.325: E/installd(1059): dexopt failed on '/data/dalvik-cache/data@app@vmdl28652.tmp@classes.dex' res = 65280
11-08 15:14:33.083: E/AndroidRuntime(3035): ERROR: thread attach failed
Is anyone perhaps familiar with this error or should I open a new thread for it?