安卓使用 POI 5.0 xmlbeans 报错 The 'na

2021-11-02  本文已影响0人  在基布路

安卓引入最新版本POI 5.0.0 出错,

一开始提示xmlbeans类重复,引入处单独排除

后出现新错误,在

 XSSFWorkbook xwb = new XSSFWorkbook(file);

处报错  

org.apache.poi.POIXMLException: error:  The 'namespace-prefix' feature is not supported while the 'namespaces' feature is enabled.

多处寻找解决方案均无效,无果。

后退回老版本3.1.2解决,用jar包引入方式。

implementation fileTree(include: ['*.jar','*.aar'],dir:'libs')

上一篇下一篇

猜你喜欢

热点阅读