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

upgrade poi to 4.0.1 #90

Closed quenchjian closed 3 years ago

quenchjian commented 3 years ago

Hi, I tried to upgrade poi version to 4.0.1 and fix various crashes. The Java 8 related api used in poi 4.0.1 is resolved by coreLibraryDesugaring provided by Android. I also tested the generated poishadow_all.jar with Android 5 (API 21) using emulator. Hope this pull request can resolve issue #44.

BTW, POI 4.0.0 have weird bugs that will crash sample code such as XSSFColor constructor missing. So I bump the version to 4.0.1 directly.

centic9 commented 3 years ago

Thanks! This seems to work fine and finally allows to try upgrading to even newer versions of Apache POI as follow-up steps!