Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android解压报错 ZipUtils.unzipFileByKeyword(ZipUtils.java:295) #1447

Open
haonan1 opened this issue Feb 2, 2021 · 4 comments
Open

android解压报错 ZipUtils.unzipFileByKeyword(ZipUtils.java:295) #1447

haonan1 opened this issue Feb 2, 2021 · 4 comments
Assignees
Labels

Comments

@haonan1
Copy link

haonan1 commented Feb 2, 2021

描述 Bug

简洁地描述下 Bug。

  • AndroidUtilCode 的版本:
  • 出现 Bug 的设备型号:
  • 设备的 Android 版本:

#00 pc 00011308 /apex/com.android.runtime/lib/libopenjdk.so (newEntry+63)
2.#1 pc 0001168f /apex/com.android.runtime/lib/libopenjdk.so (ZIP_GetNextEntry+32)
3.#2 pc 0000f20b /apex/com.android.runtime/lib/libopenjdk.so (ZipFile_getNextEntry+6)
4.#3 pc 000eec59 /system/framework/arm/boot.oat (art_jni_trampoline+112)
5.#4 pc 0025c929 /system/framework/arm/boot.oat (java.util.zip.ZipFile$ZipEntryIterator.next+144)
6.#5 pc 0001b84d /memfd:/jit-cache (deleted)
7.at java.util.zip.ZipFile.getNextEntry(Native method)
8.at java.util.zip.ZipFile.access$500(ZipFile.java:64)
9.at java.util.zip.ZipFile$ZipEntryIterator.next(ZipFile.java:568)
10.at java.util.zip.ZipFile$ZipEntryIterator.nextElement(ZipFile.java:559)
11.at java.util.zip.ZipFile$ZipEntryIterator.nextElement(ZipFile.java:540)
12.at com.blankj.utilcode.util.ZipUtils.unzipFileByKeyword(ZipUtils.java:295)
13.at com.blankj.utilcode.util.ZipUtils.unzipFile(ZipUtils.java:256)
14.at com.sccba.emas.main.manager.DownLoadZipManager$downloadZip$1.invokeSuspend(DownLoadZipManager.kt:44)
15.at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
16.at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
17.at android.os.Handler.handleCallback(Handler.java:900)
18.at android.os.Handler.dispatchMessage(Handler.java:103)
19.at android.os.Looper.loop(Looper.java:219)
20.at android.app.ActivityThread.main(ActivityThread.java:8347)
21.at java.lang.reflect.Method.invoke(Native method)
22.at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
23.at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)

@AriaLyy
Copy link

AriaLyy commented Mar 14, 2022

我也遇到了同样的问题,楼主解决了吗?

@ATeamMac2014
Copy link

注意文件读取过程中,不要写zip文件,不然会引入崩溃

@SerendipityMatthew
Copy link

我也遇到了同样的问题.

@SerendipityMatthew
Copy link

解决了,原来我对文件 就是上面的操作。 注意文件读取过程中,不要写zip文件,不然会引入崩溃。
谢谢了 @ATeamMac2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants