关于这个未解决的问题:java.lang.ClassNotFoundException: Didn't find a class “com.life.Life”,我决定打印 Life.jar 中的所有类:
dd( get_class( Mail::getFacadeRoot() ) );
但它会抛出错误说:
DexFile dx = DexFile.loadDex(file.getAbsolutePath(), File.createTempFile("opt", "dex",FXActivity.getInstance().getCacheDir()).getPath(), 0);
// Print all classes in the DexFile
for(Enumeration<String> classNames = dx.entries(); classNames.hasMoreElements();) {
String className = classNames.nextElement();
Log.e("CLASS", className);
}
如何解决此问题?
以下是 Life.jar 的内容:
java.io.IOException: Zip archive '/storage/emulated/0/Life.jar'
doesn't contain classes.dex (error msg: Entry not found)