excel - Why XSSFworkbook object is unable to work in android 4.4 and lower -


i getting exception when run module after merging app ,org.apache.poi.poixmlexception: java.lang.reflect.invocationtargetexception

 opcpackage pkg = opcpackage.open(temp);             xssfworkbook workbook = new xssfworkbook(pkg);             numberofsheet = workbook.getnumberofsheets();             (int = 0; < workbook.getnumberofsheets(); i++) {             xssfsheet sheet = workbook.getsheetat(i);             int rowscount = sheet.getphysicalnumberofrows();             formulaevaluator formulaevaluator=   workbook.getcreationhelper().createformulaevaluator();                 (int r = 0; r < rowscount; r++) {                     row row = sheet.getrow(r);                     int cellscount = row.getphysicalnumberofcells();                     (int c = 0; c < cellscount; c++) {                  string value = getcellasstring(row, c, formulaevaluator);                         al.add(new excelvalues(i, r, c, value));                     }                 }             } 

this running in android 5.0 , newer , in separate application too.

here fatal error msg getting

 java.lang.noclassdeffounderror: org.dom4j.namespace @ org.apache.poi.openxml4j.opc.internal.unmarshallers.packagepropertiesunmarshaller.<clinit>(packagepropertiesunmarshaller.java:49) @ org.apache.poi.openxml4j.opc.opcpackage.init(opcpackage.java:154) @ org.apache.poi.openxml4j.opc.opcpackage.<init>(opcpackage.java:141) @ org.apache.poi.openxml4j.opc.package.<init>(package.java:37) @ org.apache.poi.openxml4j.opc.zippackage.<init>(zippackage.java:127) @ org.apache.poi.openxml4j.opc.opcpackage.open(opcpackage.java:251) @ org.apache.poi.openxml4j.opc.opcpackage.open(opcpackage.java:200) @ idzyns.alburraq.amltraining.utils.excelvalues.onread(excelvalues.java:137) @ idzyns.alburraq.amltraining.createeventactivity.onactivityresult(createeventactivity.java:355) @ android.app.activity.dispatchactivityresult(activity.java:5456) @ android.app.activitythread.deliverresults(activitythread.java:3549) @ android.app.activitythread.handlesendresult(activitythread.java:3596) @ android.app.activitythread.access$1300(activitythread.java:151) @ android.app.activitythread$h.handlemessage(activitythread.java:1369) @ android.os.handler.dispatchmessage(handler.java:110) @ android.os.looper.loop(looper.java:193) @ android.app.activitythread.main(activitythread.java:5292) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:515) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:824) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:640) @ dalvik.system.nativestart.main(native method) 


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -