java - Creating xslx-file with Android -


i want create xslx-file in android application. im using apache poi-ooxml-3.12.jar it. while calling xssfworkbook constructor following exception:

fatal exception: main  java.lang.verifyerror: org/apache/poi/xssf/usermodel/xssfworkbook 

this code:

workbook workbook;      if (stringoperationsutil.getfileextension(file).equalsignorecase("xlsx")){         workbook = new xssfworkbook();     } else  {          //default xls         workbook = new hssfworkbook();     } 

there question topic out there (how create .docx files , .xlsx files on android) there no correct me solution in it. apache team didn't answer me. can't believe it's not possible create newest excel file in android application. android developer not using xlsx files? can't believe this. i'm using android studio btw.

please let me know, if guys know issue.

thanks in advance!

the problem incompatibility between poi-ooxml .jar files , android os.

i revisit link first, double-checking everything discussed:

how resolve java.lang.verifyerror: org/apache/poi/xssf/usermodel/xssfworkbook?

if doesn't work, "plan b" might dx:

android java.lang.verifyerror?

finally, might issue adt (although link eclipse, , you're using android studio):

java.lang.verifyerror how fix or find out root cause?


Comments