当应用程序关闭时,没关系。 但是当我设置闹钟并清除设备内存时。一段时间后它将显示在Android上,但当我点击按钮进程解除(它也将在c ++中处理),然后应用程序崩溃与消息。
try {
FileInputStream file = new FileInputStream(new File("C:\\test.xls"));
//Get the workbook instance for XLS file
HSSFWorkbook workbook = new HSSFWorkbook(file);
//Get first sheet from the workbook
HSSFSheet sheet = workbook.getSheetAt(0);
//Iterate through each rows from first sheet
Iterator<row> rowIterator = sheet.iterator();
while(rowIterator.hasNext()) {
Row row = rowIterator.next();
//For each row, iterate through each columns
Iterator<cell> cellIterator = row.cellIterator();
while(cellIterator.hasNext()) {
Cell cell = cellIterator.next();
if (cell == null || cell.getCellType() == Cell.CELL_TYPE_BLANK) {
switch(cell.getCellType()) {
case Cell.CELL_TYPE_BOOLEAN:
System.out.print(cell.getBooleanCellValue() + "\t\t");
break;
case Cell.CELL_TYPE_NUMERIC:
System.out.print(cell.getNumericCellValue() + "\t\t");
break;
case Cell.CELL_TYPE_STRING:
System.out.print(cell.getStringCellValue() + "\t\t");
break;
}
}
}
System.out.println("");
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally{
file.close();
}
答案 0 :(得分:0)
UnsatisfiedLinkError是LinkageError类的子类,表示Java虚拟机(JVM)无法找到声明为native的方法的适当本机语言定义。您是否明确指定了您正在使用的本机库?