Blankj / AndroidUtilCode

:fire: Android developers should collect the following utils(updating).
https://blankj.com/2016/07/31/android-utils-code/
Apache License 2.0
33.34k stars 10.69k forks source link

java.util.zip.ZipException: error in opening zip file #1701

Open leonard-kawhi opened 2 years ago

leonard-kawhi commented 2 years ago

描述 Bug

简洁地描述下 Bug。

相关代码

ZipUtils.unzipFile(zipFile, destDir);

异常堆栈

at java.util.zip.ZipFile.open(Native Method) 2022-09-26 18:09:14.389 10305-10305/? W/System.err: at java.util.zip.ZipFile.(ZipFile.java:225) 2022-09-26 18:09:14.389 10305-10305/? W/System.err: at java.util.zip.ZipFile.(ZipFile.java:148) 2022-09-26 18:09:14.390 10305-10305/? W/System.err: at java.util.zip.ZipFile.(ZipFile.java:162) 2022-09-26 18:09:14.390 10305-10305/? W/System.err: at com.blankj.utilcode.util.ZipUtils.unzipFileByKeyword(ZipUtils.java:290) 2022-09-26 18:09:14.390 10305-10305/? W/System.err: at com.blankj.utilcode.util.ZipUtils.unzipFile(ZipUtils.java:256)

DaviVilarinho commented 2 years ago

Was that the full stack trace? Could you provide us the zip you're dealing with?