The type javax.xml.stream.XMLStreamReader cannot be resolved. It is indirectly referenced from required .class files.Im getting this error in a line.Which jar am i missing?
I came over exactly same topic when trying to get Apache POI running on Android. Also the Apache Poi is using XmlStreamReader. The info described on the docx4java link is a valuable collection of pain points, but in the end it may be a complex task to recompile the full library.
For Apache POI, I found the POI-Android library which already did this job and made POI compatible with android (unfortunately the old POI 3.17, but works fine in my case).
POI-Android: https://github.com/SUPERCILEX/poi-android
Important: to get POI-Android running, it was important to set the Fasterxml Impls, as described here: https://github.com/ozlerhakan/poiji/issues/31