I am using Apache poi in my android application for generating excel. When i tried to use sheet.autoSizeColumn((short) 1) my application crashed with following errors.
Could not find class 'java.awt.font.TextLayout', referenced from method org.apache.poi.ss.util.SheetUtil.getCellWidth
Could not find class 'java.awt.font.TextLayout', referenced from method org.apache.poi.ss.util.SheetUtil.getColumnWidth Is there any method for using the sheet,autoSizeColumn or any alternative. Please help me thanks in advance.