Andoid: Eclipse error "Conversion to Dalvik format failed"

If you receive this error in Eclipse when compiling large .java files or using big .jar libraries
[2009-03-30 17:28:14 - Dex Loader] Unable to execute dex: null
[2009-03-30 17:28:14 - MyProject] Conversion to Dalvik format failed: 
Unable to execute dex: null 
then add the following to your eclipse.ini and the problem should be fixed:
-Xms128m
-Xmx512m
Still problems? Increase these values and try again.

6 comments:

  1. I have those, but it is still sometimes hangs with the menu bar disappearing.

    All fine on Linux.

    ReplyDelete
  2. Hey its really great solution...
    thanks a lot!!!

    ReplyDelete
  3. You can also try Project -> Clean after increasing the memory settings

    ReplyDelete
  4. Thank you all, I also fix the problem

    ReplyDelete
  5. It worked for me too
    thanks

    ReplyDelete
  6. This is such a great post to read. Stimulating me to read much more of your posts. Keep up the good work. Hoping to see a lot more excellent posts from you shortly.

    ReplyDelete