Android - Conversion to Dalvik format failed: Unable to execute dex: Java heap space
<p>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.</p>

<p>I have been to <a href="http://stackoverflow.com/questions/5943712/conversion-to-dalvik-format-failed-unable-to-execute-dex-java-heap-space">Conversion to Dalvik format failed: Unable to execute dex: Java heap space</a> 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!"</p>

<p>Does anyone know any alternate solutions?</p>

<p>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"</p>

<p>Logcat says this:</p>

<p>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</p>

<p>Is anyone perhaps familiar with this error or should I open a new thread for it?</p>
