Exception when create zipFile in Android with Zip4j: Probably not a zip file or a corrupted zip file
问题 I meet a problem when using zip4j library to generate zipfile in android, here's the code : try { ZipFile zipFile = new ZipFile(dest); zipFile.setFileNameCharset("GBK"); if (srcFile.isDirectory()) { zipFile.addFolder(srcFile, parameters); } else { zipFile.addFile(srcFile, parameters); } } catch (Exception e) { e.printStackTrace(); } and I got the Exception msg: net.lingala.zip4j.exception.ZipException: Probably not a zip file or a corrupted zip file at net.lingala.zip4j.core.HeaderReader