Questions tagged [zipexception]
12 questions
17
votes
14 answers
Flutter: Exception in thread "main" java.util.zip.ZipException: error in opening zip file
I created a new flutter project in android studio 3.5, but facing error
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
Efforts for the solution: this, this but did not work for me.

Sanket Vekariya
- 2,848
- 3
- 12
- 34
1
vote
0 answers
Deployment of a spring-boot app generates error "UnexpectedLiquibaseException: java.util.zip.ZipException: invalid block type"
So I am trying to deploy a Spring boot app (.jar file) that uses LiquiBase 3.5.3. I keep running into the following error :
27/03/18 12:52:19.538 [APP/20-0] ERR Caused by: liquibase.exception.UnexpectedLiquibaseException:…

Naurin Jamil
- 21
- 3
0
votes
1 answer
How to solve ZipException: Invalid Block lengths when reading ZipInputStream with empty directory inside zip file (Java)
I am getting the error "ZipException: Invalid Block lengths" when reading a ZipInputStream from my java code.
My zip file oppens and is extracted normally with my Zip file utility from windows, so it is not corrupted.
The first entry inside the zip…

barduchi
- 61
- 1
- 8
0
votes
0 answers
Convert Base64 to zip file (password protected) in android
I have a base64 string which when decoded online using this website gives a zip file. When the zip file is downloaded it is password protected.
In my case, I know the password but I am not able to convert base64 to a zip file and also open it and…

Shubham Agrawal
- 1,252
- 12
- 29
0
votes
1 answer
java.util.zip.ZipException ZIP_Read: error reading zip file
How can I get:
java.util.zip.ZipException ZIP_Read: error reading zip file?
I've tried with different corrupted zips, corrupted jars, but no luck so far. Any idea?

gonzo33
- 11
- 2
0
votes
1 answer
Streamed operations get the error 'java.util.zip.ZipException: incorrect header check'
I get a weird error when I try to use streamed operations to compress and decompress the String data.
Exactly, the error information in Console points to 'InflaterInputStream.read()' in my 'decompress()'.
java.util.zip.ZipException: incorrect header…

LLL Yao
- 11
- 3
0
votes
0 answers
Ignore: java.util.zip.ZipException: invalid CEN header (duplicate entry)
I have a ZIP file (actually EPUB ebook, which is the same as ZIP), and when I try to open it with a line like:
ZipFile zf = new ZipFile("/path/filename.epub");
I get "java.util.zip.ZipException: invalid CEN header (duplicate entry)" in…

gregko
- 5,642
- 9
- 49
- 76
0
votes
1 answer
ZipException while decompressing .zip programmatically
I am trying to decompressing .zip, programmatically in my application with the help of this code,
public void unzip(String _zipFile, String _targetLocation) {
dirChecker(_targetLocation);
try {
FileInputStream fin = new…

Aditya
- 3,525
- 1
- 31
- 38
0
votes
1 answer
"java.util.zip.ZipException: error in opening zip file" when trying to create a new JarFile
I'm trying to create a new JarFile using an existing File object but I keep getting a java.util.zip.ZipException: error in opening zip file.
I'm running the code below:
File x= new File("C:/Users/Priyanka/Documents/hello.java");
JarFile jarF…

I. Hurr
- 13
- 1
- 2
0
votes
2 answers
ZipException: duplicate entry
I can not build apk file. this is my error:
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry:…

Pegah Ahmadvand
- 97
- 2
- 10
0
votes
0 answers
Duplicate entry: com/google/android/gms/gcm/PendingCallback.class
I get this error when I try to generate a signed apk. Attachment code:
dependencies {
implementation 'com.android.support.constraint:constraint-layout:1.1.0-beta4'
compile fileTree(include: '*.jar', dir: 'libs')
compile…

petrox_
- 1
0
votes
1 answer
AndroidStudio, java.util.zip.ZipException
I have two test phones, one is Samsung Galaxy S5, and the other one is LG G2.
Whenever I try to run my app on LG G2, I have following error.
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
>…

Hyungik Oh
- 49
- 4