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

Zip4j not working on android 21 JDK7 #484

Closed
omkar-tenkale opened this issue Jan 9, 2023 · 3 comments
Closed

Zip4j not working on android 21 JDK7 #484

omkar-tenkale opened this issue Jan 9, 2023 · 3 comments
Assignees
Labels
bug Something isn't working resolved

Comments

@omkar-tenkale
Copy link

    java.lang.NoSuchMethodError: No virtual method toPath()Ljava/nio/file/Path; in class Ljava/io/File; or its super classes (declaration of 'java.io.File' appears in /system/framework/core-libart.jar)
        at net.lingala.zip4j.util.FileUtils.getRelativeFileName(FileUtils.java:225)
        at net.lingala.zip4j.tasks.AbstractAddFileToZipTask.cloneAndAdjustZipParameters(AbstractAddFileToZipTask.java:218)
        at net.lingala.zip4j.tasks.AbstractAddFileToZipTask.addFilesToZip(AbstractAddFileToZipTask.java:71)
        at net.lingala.zip4j.tasks.AddFolderToZipTask.executeTask(AddFolderToZipTask.java:28)
        at net.lingala.zip4j.tasks.AddFolderToZipTask.executeTask(AddFolderToZipTask.java:17)
        at net.lingala.zip4j.tasks.AsyncZipTask.performTaskWithErrorHandling(AsyncZipTask.java:51)
        at net.lingala.zip4j.tasks.AsyncZipTask.execute(AsyncZipTask.java:45)
        at net.lingala.zip4j.ZipFile.addFolder(ZipFile.java:391)
        at net.lingala.zip4j.ZipFile.addFolder(ZipFile.java:366)

Is there any workaround for this? Desugaring is not working

@omkar-tenkale
Copy link
Author

java.nio.file was added in android for in API 26

https://developer.android.com/reference/java/nio/file/package-summary.html

Any solution?

@srikanth-lingala srikanth-lingala self-assigned this Feb 2, 2023
@srikanth-lingala srikanth-lingala added bug Something isn't working new-feature New feature or request labels Feb 2, 2023
@srikanth-lingala srikanth-lingala added resolved and removed new-feature New feature or request labels Feb 2, 2023
@srikanth-lingala
Copy link
Owner

Fixed in v2.11.4 released today

@omkar-tenkale
Copy link
Author

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved
Projects
None yet
Development

No branches or pull requests

2 participants