Skip to content Skip to sidebar Skip to footer

Eclipse Gives "Conversion To Dalvik Format Failed" While Ant Works

I recently updated my SDK Tools and the ADT Plugin to the latest version (got Android 2.3 as well). This required a few changes in my config (mainly I added proguard.config=procfg.

Solution 1:

Execute "ant clean" then clean your project in Eclipse. Make sure you save your proguard generated files (/bin/proguard) before doing this because the "bin" and "gen" dirs get deleted. Annoying solution, but that is how I got around this issue.


Solution 2:

It seems the problem was with Eclipse and Ant not getting along together. I've stopped using Ant at all and now Eclipse seems to be working fine (I can even export signed & obfuscated packages using the wizard).

So, to conclude, Ant + Eclipse = a big no no.


Solution 3:

Make sure to update to the latest ADT version which is 8.0.1 as of a few hours ago.


Solution 4:

I had same problems.

My working solution:
1 ant clean, to get rid of dex errors
2 add .jars in libs to eclipse project (aadt errors?)

I have no problems when using proguard in settings.


Solution 5:

FYI I managed to get the same error message when building one of my applications using ant. however in my case I'd left 2 versions of a jar file in the libs folder. Both jar files were included by my modified ant script (based on recommendations from Can't build and run an android test project created using "ant create test-project" when tested project has jars in libs directory ) which caused the issue. My eclipse project only had one of the 2 libraries specified so didn't encounter the problem.

My solution was simple and worked, I renamed one of the 2 jar files to another extension .jazz and I was able to build the project successfully using ant.


Post a Comment for "Eclipse Gives "Conversion To Dalvik Format Failed" While Ant Works"