I want to create a xslx-File in my Android Application. Im Using Apache poi-ooxml-3.12.jar for it. But while calling the XSSFWorkbook Constructor I get the following exception:
FATAL EXCEPTION: main
java.lang.VerifyError: org/apache/poi/xssf/usermodel/XSSFWorkbook
This is my Code:
Workbook workbook;
if (StringOperationsUtil.getFileExtension(file).equalsIgnoreCase("XLSX")){
workbook = new XSSFWorkbook();
} else {
//default xls
workbook = new HSSFWorkbook();
}
There is another Question about the topic out there (How to create .docx files and .xlsx files on Android) but there is no correct for me solution in it. Also the apache team didn't answer me. I can't believe that it's not possible to create the newest excel file in an android application. Does really any Android Developer is not using xlsx files? I really can't believe this. I'm using Android Studio btw.
Please let me know, if you guys know something about that issue.
Thanks in advance!