Android: Conversion to Dalvik format failed: Unable to execute dex: null

Adam Haile picture Adam Haile · Apr 22, 2010 · Viewed 68.9k times · Source

I'm trying to use the SmugFig SmugMug API on Android. It was designed for J2SE I would imagine, so I'm not sure it will even work on Android, but I figured it was worth trying as opposed to trying to create my own API.

When I load the project though, I get the following error:

Conversion to Dalvik format failed: Unable to execute dex: null

It doesn't say what package it fails on, just "Android Packaging Problem", but it did not do this before I added SmugFig and it's dependency JARS to the build path.

Where should I look? Or does this mainly me that it just won't work with those libraries?

Answer

ken picture ken · May 5, 2010

I found a blog entry that says increase the memory allocated in eclipse.ini to this: -Xms128m -Xmx512m or something higher, but this didn't do it for me.

However, I found another post that suggested doing Project > Clean and that fixed it for me. I think it happens when you shut down Eclipse w/o shutting the emulator down first. Pretty lame bug. Spent a few hours digging for the solution this morning...grrrrrrr :-(