I’m developing an Android application and I’m trying to add a dependency to my pom.xml file:
<dependency>
<groupId>org.simpleframework</groupId>
<artifactId>simple-xml</artifactId>
<version>2.6.7</version>
</dependency>
I’m not even using it anywhere, but after I add that dependency, when I try to run the application, I get an error:
Conversion to Dalvik format failed with error 1
Ill-advised or mistaken usage of a core class (java.* or javax.*)
when not building a core library.
Why can’t I run it?
Try excluding both stax, stax-api and xpp3 from the simple import as explained here:
Android: error including/repacking dependencies which reference javax core classes