REAndroid / ARSCLib

Android binary resources read/write library
Apache License 2.0
227 stars 48 forks source link

Merge apk error use the latest commit ` d8ef9db` #32

Closed xiaoyvyv closed 1 year ago

xiaoyvyv commented 1 year ago

Merge apk error use the latest commit d8ef9db



W  java.lang.IllegalArgumentException: java.io.EOFException: Finished reading: 0
W   at com.reandroid.apk.ApkModule.getTableBlock(ApkModule.java:523)
W   at com.reandroid.apk.ApkModule.getTableBlock(ApkModule.java:530)
W   at com.reandroid.apk.ApkModule.getVolatileTableStringPool(ApkModule.java:597)
W   at com.reandroid.apk.ApkBundle.mergeStringPools(ApkBundle.java:81)
W   at com.reandroid.apk.ApkBundle.mergeModules(ApkBundle.java:44)
W   at com.xiaoyv.manager.tool.apk.editor.merge.ApkMerger.run(ApkMerger.kt:62)
W   at com.xiaoyv.manager.tool.apk.editor.merge.ApkMerger$Companion.merge(ApkMerger.kt:245)
W   at com.xiaoyv.manager.tool.apk.editor.merge.ApkMerger$Companion.merge(ApkMerger.kt:214)
W   at com.xiaoyv.manager.ui.file.FileSelectorViewModel$mergeApksFile$2$1.invokeSuspend(FileSelectorViewModel.kt:300)
W   at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
W   at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
W   at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
W   at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
W   at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
W   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
W   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
W   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
W  Caused by: java.io.EOFException: Finished reading: 0
W   at com.reandroid.arsc.io.BlockReader.readFully(BlockReader.java:204)
W   at com.reandroid.arsc.io.BlockReader.readFully(BlockReader.java:187)
W   at com.reandroid.arsc.item.BlockItem.onReadBytes(BlockItem.java:100)
W   at com.reandroid.arsc.base.Block.readBytes(Block.java:48)
W   at com.reandroid.arsc.base.BlockContainer.onReadBytes(BlockContainer.java:149)
W   at com.reandroid.arsc.header.HeaderBlock.onReadBytes(HeaderBlock.java:151)
W   at com.reandroid.arsc.base.Block.readBytes(Block.java:48)
W   at com.reandroid.arsc.base.BlockContainer.onReadBytes(BlockContainer.java:149)
W   at com.reandroid.arsc.chunk.Chunk.onReadBytes(Chunk.java:59)
W   at com.reandroid.arsc.base.Block.readBytes(Block.java:48)
W   at com.reandroid.arsc.chunk.TableBlock.onReadBytes(TableBlock.java:147)
W   at com.reandroid.arsc.base.Block.readBytes(Block.java:48)
W   at com.reandroid.arsc.chunk.TableBlock.readBytes(TableBlock.java:161)
W   at com.reandroid.arsc.chunk.TableBlock.load(TableBlock.java:326)
W   at com.reandroid.apk.ApkModule.loadTableBlock(ApkModule.java:615)
W   at com.reandroid.apk.ApkModule.getTableBlock(ApkModule.java:517)
W   ... 16 more
xiaoyvyv commented 1 year ago

Here is the test apk.zip https://fileport.io/KvP7WMwNf95P

xiaoyvyv commented 1 year ago

After I restored the code submitted in this place, Merge apks worked normally 图片

REAndroid commented 1 year ago

Check the latest commit and this