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

NoClassDefFoundError : StandardCharsets in Android 4.3 #321

Closed
abbasalim opened this issue May 18, 2021 · 3 comments
Closed

NoClassDefFoundError : StandardCharsets in Android 4.3 #321

abbasalim opened this issue May 18, 2021 · 3 comments

Comments

@abbasalim
Copy link

in old android give this error:

.... Caused by: java.lang.NoClassDefFoundError: java.nio.charset.StandardCharsets at net.lingala.zip4j.util.Zip4jUtil.convertCharArrayToByteArray(Zip4jUtil.java:103) at net.lingala.zip4j.crypto.engine.ZipCryptoEngine.initKeys(ZipCryptoEngine.java:44) at net.lingala.zip4j.crypto.StandardEncrypter.init(StandardEncrypter.java:39) at net.lingala.zip4j.crypto.StandardEncrypter.<init>(StandardEncrypter.java:32) at net.lingala.zip4j.io.outputstream.ZipStandardCipherOutputStream.initializeEncrypter(ZipStandardCipherOutputStream.java:21) at net.lingala.zip4j.io.outputstream.ZipStandardCipherOutputStream.initializeEncrypter(ZipStandardCipherOutputStream.java:10) at net.lingala.zip4j.io.outputstream.CipherOutputStream.<init>(CipherOutputStream.java:34) at net.lingala.zip4j.io.outputstream.ZipStandardCipherOutputStream.<init>(ZipStandardCipherOutputStream.java:14) at net.lingala.zip4j.io.outputstream.ZipOutputStream.initializeCipherOutputStream(ZipOutputStream.java:196) at net.lingala.zip4j.io.outputstream.ZipOutputStream.initializeCompressedOutputStream(ZipOutputStream.java:179) at net.lingala.zip4j.io.outputstream.ZipOutputStream.putNextEntry(ZipOutputStream.java:79) at net.lingala.zip4j.tasks.AbstractAddFileToZipTask.addFileToZip(AbstractAddFileToZipTask.java:110) at net.lingala.zip4j.tasks.AbstractAddFileToZipTask.addFilesToZip(AbstractAddFileToZipTask.java:85) 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:46) at net.lingala.zip4j.tasks.AsyncZipTask.execute(AsyncZipTask.java:40) at net.lingala.zip4j.ZipFile.addFolder(ZipFile.java:391) at net.lingala.zip4j.ZipFile.addFolder(ZipFile.java:366) .....

@abbasalim
Copy link
Author

this error occure in version 2.7, no problem in 2.6.4

@srikanth-lingala
Copy link
Owner

Fixed it. I will include the fix in the next release.

@srikanth-lingala
Copy link
Owner

Fixed in v2.8.0 released today.

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

No branches or pull requests

2 participants