tags:

views:

5782

answers:

4

In my Android appliction in eclipse I get the following error:

UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lorg/xmlpull/v1/XmlPullParser;
....
Conversion to Dalvik format failed with error 1

this error only appears if I add a specific external Jar to my project. I search long time to the right solution but all possible solutions don't work. I even tried to change to android 1.6 instead of 1.5(current version I use)

+4  A: 

i solved the problem.

i seems that is have two jars on my buildpath that include the same package and classes.

i used smack.jar and android_maps_lib-1.0.2

delete this package from one jar solved the problem.

someone got an idea for a better solution?

michel
+2  A: 

Go to Project » Properties » Java Build Path » Libraries and remove all except the "Android X.Y" (in my case Android 1.5). click OK. Go to Project » Clean » Clean projects selected below » select your project and click OK. That should work.

that is not possible. I need smack.jar.... strange answer
michel
I had the same issue and the above steps by user408841 worked for me.
arunabhdas
A: 

Worked for me also!

MPB