部分机型出现补丁版本不一致的bug
异常类型:app运行时异常
手机型号:vivo X9Plus
手机系统版本:Android 7.1.2
tinker版本:1.9.14.5
gradle版本:5.4.1
是否使用热更新SDK:TinkerPatch SDK
系统:win10 堆栈/日志: 2020-01-06 10:42:07.219 ? D/Tinker.TinkerLoader: tryLoad test test 2020-01-06 10:42:07.247 ? E/Tinker.TinkerInternals: tinkerId is not equal, base is tinker_id_1.3.9, but patch is tinker_id_1.3.8 2020-01-06 10:42:07.247 ? W/Tinker.TinkerLoader: tryLoadPatchFiles:checkTinkerPackage 2020-01-06 10:42:07.250 ? D/Tinker.DefaultAppLike: onBaseContextAttached: 2020-01-06 10:42:07.254 ? I/Tinker.SamplePatchListener: application maxMemory:256 2020-01-06 10:42:07.257 ? W/Tinker.Tinker: tinker patch directory: /data/user/0/com.xrzj.xrdecoration/tinker 2020-01-06 10:42:07.259 ? I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.14.5 2020-01-06 10:42:07.259 ? I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-8, process name:.restart, main process:false, systemOTA:false, fingerPrint:vivo/PD1710/PD1710:8.1.0/OPM1.171019.011/compil09261839:user/release-keys, oatDir:odex, useInterpretMode:false 2020-01-06 10:42:07.259 ? I/Tinker.TinkerLoadResult: parseTinkerResult oldVersion:a7f25bfa50b758c21d367e6f0b8d7cfc, newVersion:361fc15d8af8df791c62ba79427722a2, current:a7f25bfa50b758c21d367e6f0b8d7cfc 2020-01-06 10:42:07.260 ? I/Tinker.TinkerLoadResult: patch package check fail 2020-01-06 10:42:07.260 ? I/Tinker.DefaultLoadReporter: patch loadReporter onLoadPackageCheckFail: load patch package check fail file path: /data/user/0/com.xrzj.xrdecoration/tinker/patch-a7f25bfa/patch-a7f25bfa.apk, errorCode: -7 2020-01-06 10:42:07.260 ? I/Tinker.PatchInfo: rewritePatchInfoFile file path:/data/user/0/com.xrzj.xrdecoration/tinker/patch.info , oldVer:a7f25bfa50b758c21d367e6f0b8d7cfc, newVer:361fc15d8af8df791c62ba79427722a2, isProtectedApp:1, isRemoveNewVersion:1, fingerprint:vivo/PD1710/PD1710:8.1.0/OPM1.171019.011/compil09261839:user/release-keys, oatDir:odex 2020-01-06 10:42:07.266 ? I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.xrzj.xrdecoration/tinker, code: -8, cost: 28ms 2020-01-06 10:42:07.266 ? W/Tinker.Tinker: tinker load fail!
重新步骤: 1、安装appV1.3.7 2、加载补丁patchV1.3.7.patch,重启 3、在appV1.3.7上更新至appV1.3.8,覆盖安装 4、更新完之后进入appV1.3.8(不要退出),加载patchV1.3.8.patch,重启 5、出现bug:tinkerId is not equal, base is tinker_id_1.3.8, but patch is tinker_id_1.3.7 6、部分机型此bug必现,如vivo X9Plus、vivo X20Plus
Source: Tencent/tinker