05-18 00:21:11.896 18428-18485/? E/AndroidRuntime: FATAL EXCEPTION: Thread-6
Process: com.aviation.CoPilot, PID: 18428
java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/image/BufferedImage;
at com.aspose.cells.b.a.b.za.(Unknown Source)
at com.aspose.cells.b.a.b.za.(Unknown Source)
at com.aspose.cells.a.d.zap.c(Unknown Source)
at com.aspose.cells.a.d.zap.b(Unknown Source)
at com.aspose.cells.a.d.zgo.(Unknown Source)
at com.aspose.cells.a.d.zgo.a(Unknown Source)
at com.aspose.cells.a.c.zn.a(Unknown Source)
at com.aspose.cells.WorksheetCollection.V(Unknown Source)
at com.aspose.cells.WorksheetCollection.(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.(Unknown Source)
at com.aviation.CoPilot.MainActivity$7.run(MainActivity.java:591)
Caused by: java.lang.ClassNotFoundException: Didn't find class "java.awt.image.BufferedImage" on path: DexPathList[[zip file "/data/app/com.aviation.CoPilot-2/base.apk"],nativeLibraryDirectories=[/data/app/com.aviation.CoPilot-2/lib/arm64, /system/lib64, /vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.aspose.cells.b.a.b.za.(Unknown Source)
at com.aspose.cells.b.a.b.za.(Unknown Source)
at com.aspose.cells.a.d.zap.c(Unknown Source)
at com.aspose.cells.a.d.zap.b(Unknown Source)
at com.aspose.cells.a.d.zgo.(Unknown Source)
at com.aspose.cells.a.d.zgo.a(Unknown Source)
at com.aspose.cells.a.c.zn.a(Unknown Source)
at com.aspose.cells.WorksheetCollection.V(Unknown Source)
at com.aspose.cells.WorksheetCollection.(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.(Unknown Source)
at com.aviation.CoPilot.MainActivity$7.run(MainActivity.java:591)
05-18 00:21:11.898 1416-2798/? W/ActivityManager: Force finishing activity com.aviation.CoPilot/.MainActivity
05-18 00:21:11.906 1416-15478/? E/ActivityManager: Sending non-protected broadcast com.motorola.motocare.INTENT_TRIGGER from system 2349:com.motorola.process.system/1000 pkg com.motorola.motgeofencesvc
java.lang.Throwable
at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:18163)
at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:18763)
at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:512)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2904)
at android.os.Binder.execTransact(Binder.java:565)
my code in main activity is :
Thread mThread = new Thread() {
@Override
public void run() {
File file = new File(getExternalFilesDir(null), "MyQuizFree.xlsx");
FileInputStream fstream;
LoadOptions loadOptions = new LoadOptions(FileFormatType.XLSX);
loadOptions.setPassword("@@hpln##ali!!1396%%");
FileInputStream myInput = null;
try {
fstream = new FileInputStream(file);
workbook = new Workbook(fstream, loadOptions);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if (QuizTypes != null && QuizTypes.size() > 0)
QuizTypes.clear();
if (workbook != null) {
Worksheet worksheet = workbook.getWorksheets().get(0);
Iterator rowIterator = worksheet.getCells().getRows().iterator();
while (rowIterator.hasNext())
{
Row r = rowIterator.next();
Iterator cellIterator = r.iterator();
while (cellIterator.hasNext()) {
Cell cell = cellIterator.next();
QuizTypes.add(cell.getStringValue());
Log.d("cell", cell.getStringValue());
break;
}
}
if (QuizTypes.size() > 0) {
dialog.cancel();
runservices();
changeFragment(new ShowAllQuizesFragment());
}
}
}
};
mThread.start();
}
please help me