I have been trying to write excel sheets to external storage using apache poi library on android but every time I run the app I am getting the error
Failed resolution of :Ljavax/XML/stream/XMLEventFactory
I have read the official documentation for poi and searched Google but in vain. Also I use jdk1.8 but still the error occurs.
Currently Apache POI will not work on Android out of the box due to various problems that you will encounter when using the libraries from Apache POI directly.
There are two projects that try to make it possible to use Apache POI on Android:
Add implementation 'javax.xml.stream:stax-api:1.0'
in you app build.gradle
, as some core class missed
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With