Dalvik conversion error due to StAX
When I add the stax-api-1.0-2.jar
in my Android project, I get the following error:
Dx trouble processing "javax/xml/stream/EventFilter.class"
Conversion to Dalvik format failed with error 1
Now I have searched the site and found this "Conversion to Dalvik format failed with error 1" on external JAR and a lot of other similar questions and have tried out the solutions presented in them. Unfortunately, these solutions do not work for me. I have come to the conclusion that the problem is in using this jar itself.
My question is two-fold:
Why does Dalvik conversion fail when using particular core external jar like stax-api-1.0-2.jar
but does not fail for javax.json-1.0.4.jar
, javax.ws.rs-api-2.0.jar
, javax.annotation-api-1.2.jar
when these are also core jar files?
Which alternate to stax-api-1.0-2.jar
I can use which will not cause this error?
下一篇: 由于StAX导致的Dalvik转换错误