okdownload icon indicating copy to clipboard operation
okdownload copied to clipboard

android10分块下载会报异常

Open owenxiao-AS opened this issue 4 years ago • 1 comments

解决办法 把okdownload以第三方库引入依赖 搜索类MultiPointOutputStream 类中搜索close(int blockIndex) throws IOException outputStreamMap.remove(blockIndex);下面加入 if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.Q) { noSyncLengthMap.remove(blockIndex); }

owenxiao-AS avatar Jul 07 '20 10:07 owenxiao-AS

Thank you for the solution you provided. We will use this method temporarily and wait for the official to fix this bug

liushenming1994 avatar Aug 19 '20 11:08 liushenming1994