android长按文件,选择解压后,有时会生成一个同名的无后缀

最近在做文件管理,添加了压缩功能,但是测试的时候发现,文件一多,有时会生成一个同名的无后缀 图片描述

求思路,文件少的话就不会出现这种文件!

Log日志:
java.io.UTFDataFormatException: bad byte at 43
04-21 11:42:26.503 19451-19639/com.guli.fileexplorer W/System.err: at java.nio.charset.ModifiedUtf8.decode(ModifiedUtf8.java:60)
04-21 11:42:26.503 19451-19639/com.guli.fileexplorer W/System.err: at java.util.zip.ZipInputStream.readString(ZipInputStream.java:286)
04-21 11:42:26.503 19451-19639/com.guli.fileexplorer W/System.err: at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:255)
04-21 11:42:26.503 19451-19639/com.guli.fileexplorer W/System.err: at com.guli.fileexplorer.ZipAsyncTask.doInBackground(ZipAsyncTask.java:70)
04-21 11:42:26.504 19451-19639/com.guli.fileexplorer W/System.err: at com.guli.fileexplorer.ZipAsyncTask.doInBackground(ZipAsyncTask.java:15)
04-21 11:42:26.504 19451-19639/com.guli.fileexplorer W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:292)
04-21 11:42:26.504 19451-19639/com.guli.fileexplorer W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
04-21 11:42:26.504 19451-19639/com.guli.fileexplorer W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
04-21 11:42:26.504 19451-19639/com.guli.fileexplorer W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
04-21 11:42:26.504 19451-19639/com.guli.fileexplorer W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
04-21 11:42:26.504 19451-19639/com.guli.fileexplorer W/System.err: at java.lang.Thread.run(Thread.java:818)

以上是 android长按文件,选择解压后,有时会生成一个同名的无后缀 的全部内容, 来源链接: utcz.com/p/173712.html

回到顶部