Recently we updated eclipse adt plugin to 16 version, and now can\'t run our application, it compiles normally, but when we run, it throws following error :
Actually it's becouse my lib projects pacage name is not the same as in my main project.
Just in case somebody comes here from a Google search for "Conversion to Dalvik format failed with error 2". I had the same issue and it seemed to be related to the JVM or the Eclipse startup options.
Updating to Java 7 resolved this.
I see that's an old problem, but I found an another solution:
Remove -XX:+AggresiveOpts
from eclipse.ini
.