Failed to convert Dalvik format with error 2 adt 16.0.1

We recently updated the eclipse adt plugin to version 16 and now we can’t run our application, it compiles normally, but when we launch it, it gives the following error:

problem conclusion: there is no extended operation code for 016be7fe @ 0032: sget-object v4: Lorg / apache / http / HttpVersion ;, org.apache.http.HttpVersion.HTTP_1_1: Lorg / apache / http / HttpVersion; Conversion to Dalvik format failed with error 2

And if we comment on some identifier in our XML layout files, it will start again. Our project is huge, and many library projects have been added to it. The application works fine with the previous adt plugin, which did not export library projects as .jar files. I assume that I will be interested in changes in the latest versions of Android, which are now not final.

My question is, how can we fix this, and is there a limit on the number of IDs in android xml files? Or maybe this is an android bug?

+3
android android-layout
source share
3 answers

This is actually because the name of my lib pacage project is not the same as in my main project.

+1
source share

I see an old problem, but found another solution:

Remove -XX:+AggresiveOpts from eclipse.ini .

+10
source share

Just in case, someone comes here from a Google search for "Error converting to Dalvik format with error 2". I had the same problem and it seemed to be related to the JVM or Eclipse startup options.

An update for Java 7 resolved this.

0
source share

All Articles