Thứ Năm, 7 tháng 6, 2012

Android: Problem with Conversion to Dalvik format

While working with Android on Eclipse through ADT, deploying an Android app, this wolf has met another error message like:

"Conversion to Dalvik format failed: Unable to execute dex: Java heap space"

The wolf has sniffing on the internet and found good solution for it.

The reason: Eclipse didn't allocate memory enough for running in this case.
The default memory setting on Eclipse (Indiago) was "-Xms40m -Xmx384m"
  1. Change these value to another bigger (like "-Xms256m -Xmx1024m") in the "eclipse.ini" file at the root of Eclipse's folder.
  2. Restart the Eclipse, you should terminate the "adb.exe" process in Tasks Manager. But, it doesn't matter.
  3. (HAVE TO) Clean up project and Build it again.

Then, it continue enjoying the bone.
(Refer edfrom Internet and StackOverflow)

Không có nhận xét nào:

Đăng nhận xét