无法解决以下问题:Ljavax / xml / stream / XMLStreamReader;

时间:2019-07-08 10:40:22

标签: java android apache-poi xmlbeans

我无法从android应用程序中读取.xlsx文件,每次尝试读取它时,都会在这些行周围出现错误。

OPCPackage pkg = OPCPackage.open(new File(filePath));
Workbook excelWorkBook = new XSSFWorkbook(pkg);

错误详细信息:

  

2019-07-08 13:21:04.782 9126-9126 / com.example.myapplication W / System.err:无法解决以下问题:Ljavax / xml / stream / XMLStreamReader;

     

2019-07-08 13:21:25.110 9126-9126 / com.example.myapplication I / zygote:   拒绝对先前失败的类java.lang.Class进行重新初始化:   java.lang.NoClassDefFoundError:无法解决以下问题:Ljavax / xml / stream / XMLStreamReader;

     

2019-07-08 13:21:25.112 9126-9126 / com.example.myapplication W / System.err:org.apache.xmlbeans.XmlBeans

     

2019-07-08 13:21:25.186 9126-9135 / com.example.myapplication W / System.err:清理未关闭的ZipFile存档/storage/emulated/0/Download/example.xlsx

如果有用,我正在使用apache-poi 4.1.0。

0 个答案:

没有答案