Android with Eclipse: Conversion to Dalvik format failed with error 1 [solved]

During compiling some Android projects using Eclipse I had regular problems with exporting signed apk file. It is a known problem and everyone has his own solution to fix the issue. For my projects where I included many apk libs or jar files (Actionbarsherlock, gson, etc…) every export was finished with result:

Eclipse Android dalvik format failed with error
Conversion to Dalvik format failed with error 1

or my Eclipse crashed or the package was corrupted ๐Ÿ™‚ It was very frustrating. It was not problem with Proguard. The solution is very simple. Before you start to create signed apk file you should:

  • go to Project menu -> disable Build Automatically…
  • after thatย Project -> Clean.. and clean all yours projects you use to create your apk ( uncheck Start a build immediately)

eclipse.clean_.android.without.recompile

  • and now right click on the project -> Android tools -> Export signed application package…

Works for me on my workstations with Windows. And you still have problems with that?

11 thoughts on “Android with Eclipse: Conversion to Dalvik format failed with error 1 [solved]”

  1. You save the life of my computer with this : I was about to throw it threw the window with this annoying error (in my case, it appends time to time, specially when i’m in a hurry).

    Thank’s a lot

  2. Doesn’t work for me, when I try to export project as signed apk, it gives me the same error at the end

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top