Tencent / tinker

Tinker is a hot-fix solution library for Android, it supports dex, library and resources update without reinstall apk.
Other
17.11k stars 3.33k forks source link

Tinker.DefaultLoadReporter: patch loadReporter onLoadPatchListenerReceiveFail: code: -3 #1542

Open Drunk-Snow opened 3 years ago

Drunk-Snow commented 3 years ago

下载成功,但是合成有问题,怎么解决呢,-3是什么意思呢,没有看到和我的情况类似的 异常类型:app运行时异常

手机型号:华为P20

手机系统版本:10.0

tinker版本:1.9.9

gradle版本:4.4

Bugly SDK

系统:Mac

堆栈/日志:

  1. 如是编译异常,请在执行gradle命令时,加上--stacktrace;
  2. 日志我们需要过滤"Tinker."关键字;
  3. 对于合成失败的情况,请给出:patch进程的日志,这里需要将Android Moniter右上角设为No Filter。
    
    2021-03-23 14:00:41.070 11063-11063/? D/Tinker.TinkerManager: onDownloadSuccess.
    2021-03-23 14:00:41.070 11063-11063/? D/Tinker.TinkerManager: check if has new patch.
    2021-03-23 14:00:41.083 11063-11063/? D/Tinker.TinkerManager: has new patch.
    2021-03-23 14:00:41.090 11063-11063/? D/Tinker.TinkerManager: starting patch.
    2021-03-23 14:00:41.094 11063-11063/? I/Tinker.TinkerPatchListener: receive a patch file: /data/user/0/xxxx/app_tmpPatch/tmpPatch.apk, file size:200923
    2021-03-23 14:00:41.100 11063-11063/? I/Tinker.DefaultLoadReporter: patch loadReporter onLoadPatchListenerReceiveFail: patch receive fail: /data/user/0/xxxx/app_tmpPatch/tmpPatch.apk, code: -3
    2021-03-23 14:00:47.114 10024-10055/? E/Tinker.DexDiffPatchInternal: parallel dex optimizer file changed_classes1.dex.odex is not exist, just wait 27 times
    2021-03-23 14:00:57.152 10024-10055/? E/Tinker.DexDiffPatchInternal: parallel dex optimizer file changed_classes1.dex.odex is not exist, just wait 28 times
    2021-03-23 14:01:07.193 10024-10055/? E/Tinker.DexDiffPatchInternal: parallel dex optimizer file changed_classes1.dex.odex is not exist, just wait 29 times
    2021-03-23 14:01:17.238 10024-10055/? E/Tinker.DexDiffPatchInternal: parallel dex optimizer file changed_classes1.dex.odex is not exist, just wait 30 times
    2021-03-23 14:01:27.277 10024-10055/? E/Tinker.DexDiffPatchInternal: parallel dex optimizer file changed_classes1.dex.odex is not exist, just wait 31 times
596861134 commented 3 years ago

解决了吗?我也遇到了这样的问题