Android ZipInputStream: only DEFLATED entries can have EXT descriptor
问题 On my android device, I need to extract a file (an xapk, that is a plain zip archive as far as I know) that I get from a content uri. I'm creating the ZipInputStream using this line of code: ZipInputStream zis = new ZipInputStream(getContentResolver().openInputStream(zipUri)); And then I try to read the first entry of the archive with: ZipEntry entry = zis.getNextEntry() The problem is that I get this exception: java.util.zip.ZipException: only DEFLATED entries can have EXT descriptor I'm 100