安卓引入最新版本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')
网友评论