Android上的JEXCelAPI

当我添加JExcelAPI http://jexcelapi.sourceforge.net/到类path并运行我的应用程序,我得到:写输出的麻烦:不应该发生[ 2009-07-16 14:32:19 - xxx ]转换Dalvik格式失败,错误2

任何想法? 谢谢

在使用jexcelapi网站的示例教程代码时,我在android上看到了这个错误。 例如http://www.andykhan.com/jexcelapi/tutorial.html

对我来说,解决方法是用单元格replace右侧的CellType:

例如,更改:

 if(a1.getType() == CellType.LABEL) 

对此:

 if(a1.getType() == cell.LABEL) 

在单元格中填充sheet.getCell(…)api:

 Cell cell = sheet.getCell(j, i); 

希望这可以帮助!