How to satisfy dependencies for Apache POI on Android?

后端 未结 2 891
醉酒成梦
醉酒成梦 2020-12-11 09:23

There are many posts about reading .docx files with Apache POI on Android. I write Java program, which do it and want move it Android platform. But XWPFDocument requires xml

相关标签:
2条回答
  • 2020-12-11 09:54

    There are now at least two projects which try to solve most of the problems when using Apache POI on Android. Only some methods when handling images will still fail because Apache POI uses stuff form java.awt which Android does not have.

    Take a look at

    1. https://github.com/andruhon/android5xlsx
    2. https://github.com/centic9/poi-on-android/ (mainted by me)

    The first one is currently based on POI 3.12, whereas the second can be re-compiled with newer versions of POI more easily.

    0 讨论(0)
  • 2020-12-11 10:07

    Long investigation shown, it is not possible to use Apache POI on Android platform for editing .docx files.

    0 讨论(0)
提交回复
热议问题