Conversion to Dalvik format failed with error 1

987 Views Asked by At

i guess there are a lot of reasons why Conversion to Dalvik format could fail with error 1, and there are alot of solutions offered in SO, but none of them worked for me... after wasting hours i finally managed to solve it... i will post my own solution for this question for later reference and for the community. i hope this will be a time saver!

2

There are 2 best solutions below

2
On BEST ANSWER
  1. go to Project tab
  2. disable Build Automatically
  3. remove bin library from your project
  4. enable Build Automatically
  5. try again!
3
On

I am convinced that the anwser from Ofek works. Although let me clear it for you.

Usually dalvik problems happen when you have conflits with libraries in your project maybe because you added a library twice.

Maybe one in a lib folder and another from the Properties -> Java Build Path -> Libraries

Only one library should be used.