centic9 / poi-on-android

A sample project that shows how Apache POI can be used in an Android application
Apache License 2.0
357 stars 89 forks source link

support poi 4.0 #44

Closed pjfanning closed 3 years ago

pjfanning commented 6 years ago

Adding for planning purposes since queries have come in POI user list about this

centic9 commented 6 years ago

Gave it a quick try, faced multiple issues:

pjfanning commented 6 years ago

I've removed the stax code from PackagePropertiesMarshaller: https://bz.apache.org/bugzilla/show_bug.cgi?id=62796

centic9 commented 5 years ago

Unfortunately there are more classes from javax.xml.stream and javax.xml.namespace which are missing now, not sure if we can get this working again, Android seems to simple not want to support native XML parsing the Java itself does.

dreamx3012 commented 5 years ago

Hello. I tried to build jar with apache POI version 4.1.0 But I see the relocation command didn't work for this version // Relocate javax dependencies so Android does not choke relocate 'javax.xml.namespace', 'org.apache.poi.javax.xml.namespace' relocate 'javax.xml.stream', 'org.apache.poi.javax.xml.stream' relocate 'javax.xml.XMLConstants', 'org.apache.poi.javax.xml.XMLConstants' I checked jar file after build and see there is no package org.apache.poi.javax.xml. Do you get this error?

mtariquekhan commented 5 years ago

I have to use XWPFChart from XWPFDocument but it is not available in 3.17. It requires 4.0. Will u update it to 4.0 or is there any other dependency that I can add to get charts from the Docx?

centic9 commented 5 years ago

I tried to update to 4.0 but faced various severe blocking issues, so support for Apache POI 4.0 is currently not planned unless someone with more knowledge than me takes a look at the issues that pop up currently.

centic9 commented 3 years ago

This is finally solved via #90