views:

3131

answers:

2

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?

+8  A: 

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 :-(

ken
Thanks! I'll give it a shot.
Adam Haile
Thank you for ending my misery!!
Horia Dragomir
This worked for me!
Hongwei Yan
This worked for me too! It seemed to have started after I changed the amount of memory in eclipse.ini, and Clean Project fixed it.
Adam
A: 

Here they suggest that these error is caused by huge .java files.

I had the same problem and incrementing the memory allocated works for me.

Julio J.