title: Android - Conversion to Dalvik format failed: Unable to execute dex: Java heap space
body: <p>When I try to run my project on my android device I get the error <code>"Conversion to Dalvik format failed: Unable to execute dex: Java heap space"</code>. I have imported the project from another computer where it was working properly.</p>
  
  <p>I have been to <a href="https://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 <code>-XmsAm</code> and <code>-XmxBm</code> but as I increase the values the problem continues until Eclipse won't start or I get an error that says: <code>"Dex Loader] Unable to execute dex: Cannot handle conversion to jumbo index!"</code></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: <code>"Installation error: INSTALL_FAILED_DEXOPT"</code></p>
  
  <p>Logcat says this:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>Is anyone perhaps familiar with this error or should I open a new thread for it?</p>