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

应用补丁失败 #1517

Open Elex92 opened 3 years ago

Elex92 commented 3 years ago

2021-01-21 11:48:05.521 22867-22867/? D/Tinker.TinkerLoader: tryLoad test test 2021-01-21 11:48:05.522 22867-22867/? W/Tinker.TinkerLoader: tryLoadPatchFiles:patch dir not exist:/data/user/0/com.sk.hotfixflutter/tinker 2021-01-21 11:48:05.522 22867-22867/? D/Tinker.DefaultAppLike: onBaseContextAttached: 2021-01-21 11:48:05.522 22867-22867/? I/Tinker.ReflectApp: with app realApplication from manifest applicationName:com.sk.hotfixflutter.AppApplication 2021-01-21 11:48:05.523 22867-22867/? I/Tinker: is use tinker 2021-01-21 11:48:05.524 22867-22867/? I/Tinker.TinkerPatchListener: application maxMemory:512 2021-01-21 11:48:05.524 22867-22867/? W/Tinker.Tinker: tinker patch directory: /data/user/0/com.sk.hotfixflutter/tinker 2021-01-21 11:48:05.525 22867-22867/? I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.14.6 2021-01-21 11:48:05.525 22867-22867/? I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-2, process name:com.sk.hotfixflutter, main process:true, systemOTA:false, fingerPrint:Lenovo/LenovoTB-J706F_PRC/J706F:10/QKQ1.200329.002/12.0.335_201103:user/release-keys, oatDir:null, useInterpretMode:false 2021-01-21 11:48:05.525 22867-22867/? W/Tinker.TinkerLoadResult: can't find patch file, is ok, just return 2021-01-21 11:48:05.525 22867-22867/? I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.sk.hotfixflutter/tinker, code: -2, cost: 1ms 2021-01-21 11:48:05.525 22867-22867/? W/Tinker.Tinker: tinker load fail! 2021-01-21 11:48:05.528 22867-22867/? E/Tinker.ReflectApp: replaceApplicationLike delegateClass:class com.tencent.bugly.beta.tinker.TinkerApplicationLike 2021-01-21 11:48:05.528 22867-22867/? D/Tinker.DefaultAppLike: onCreate 2021-01-21 11:48:05.530 22867-22867/? I/Tinker: find FlutterMain 2021-01-21 11:48:05.530 22867-22867/? I/Tinker: cpu abi is:arm64-v8a 2021-01-21 11:48:05.530 22867-22867/? I/Tinker: flutterPatchInit() called false true 2021-01-21 11:48:05.540 22867-22867/? I/CrashReport: backup java handler: com.tencent.bugly.beta.tinker.TinkerUncaughtExceptionHandler@5e78f7f 2021-01-21 11:48:05.567 22867-22867/? W/CrashReport: [patch] tinker new id is null ,so patch version is invalid 2021-01-21 11:48:05.568 22867-22867/? I/CrashReport: TINKER_ID:1.0.0.1_0121-11-12-59 2021-01-21 11:48:05.568 22867-22867/? I/CrashReport: NEW_TINKER_ID: 2021-01-21 11:48:05.719 22867-22867/? W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry info not exist, just return 2021-01-21 11:48:08.668 22867-22895/? D/CrashReport: app version is: [1.0.0.1], [deviceId:9e7c1f65dfea90ae], channel: [null], buildNo: [0], base tinkerId:[1.0.0.1_0121-11-12-59], patch tinkerId:[], patch version:[], strategyType:[0] 2021-01-21 11:48:05.521 22867-22867/? D/Tinker.TinkerLoader: tryLoad test test 2021-01-21 11:48:05.522 22867-22867/? W/Tinker.TinkerLoader: tryLoadPatchFiles:patch dir not exist:/data/user/0/com.sk.hotfixflutter/tinker 2021-01-21 11:48:05.522 22867-22867/? D/Tinker.DefaultAppLike: onBaseContextAttached: 2021-01-21 11:48:05.522 22867-22867/? I/Tinker.ReflectApp: with app realApplication from manifest applicationName:com.sk.hotfixflutter.AppApplication 2021-01-21 11:48:05.523 22867-22867/? I/Tinker: is use tinker 2021-01-21 11:48:05.524 22867-22867/? I/Tinker.TinkerPatchListener: application maxMemory:512 2021-01-21 11:48:05.524 22867-22867/? W/Tinker.Tinker: tinker patch directory: /data/user/0/com.sk.hotfixflutter/tinker 2021-01-21 11:48:05.525 22867-22867/? I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.14.6 2021-01-21 11:48:05.525 22867-22867/? I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-2, process name:com.sk.hotfixflutter, main process:true, systemOTA:false, fingerPrint:Lenovo/LenovoTB-J706F_PRC/J706F:10/QKQ1.200329.002/12.0.335_201103:user/release-keys, oatDir:null, useInterpretMode:false 2021-01-21 11:48:05.525 22867-22867/? W/Tinker.TinkerLoadResult: can't find patch file, is ok, just return 2021-01-21 11:48:05.525 22867-22867/? I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.sk.hotfixflutter/tinker, code: -2, cost: 1ms 2021-01-21 11:48:05.525 22867-22867/? W/Tinker.Tinker: tinker load fail! 2021-01-21 11:48:05.528 22867-22867/? E/Tinker.ReflectApp: replaceApplicationLike delegateClass:class com.tencent.bugly.beta.tinker.TinkerApplicationLike 2021-01-21 11:48:05.528 22867-22867/? D/Tinker.DefaultAppLike: onCreate 2021-01-21 11:48:05.530 22867-22867/? I/Tinker: find FlutterMain 2021-01-21 11:48:05.530 22867-22867/? I/Tinker: cpu abi is:arm64-v8a 2021-01-21 11:48:05.530 22867-22867/? I/Tinker: flutterPatchInit() called false true 2021-01-21 11:48:05.540 22867-22867/? I/CrashReport: backup java handler: com.tencent.bugly.beta.tinker.TinkerUncaughtExceptionHandler@5e78f7f 2021-01-21 11:48:05.567 22867-22867/? W/CrashReport: [patch] tinker new id is null ,so patch version is invalid 2021-01-21 11:48:05.568 22867-22867/? I/CrashReport: TINKER_ID:1.0.0.1_0121-11-12-59 2021-01-21 11:48:05.568 22867-22867/? I/CrashReport: NEW_TINKER_ID: 2021-01-21 11:48:05.719 22867-22867/? W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry info not exist, just return 2021-01-21 11:48:08.668 22867-22895/? D/CrashReport: app version is: [1.0.0.1], [deviceId:9e7c1f65dfea90ae], channel: [null], buildNo: [0], base tinkerId:[1.0.0.1_0121-11-12-59], patch tinkerId:[], patch version:[], strategyType:[0]

Elex92 commented 3 years ago

2021-01-21 11:48:05.521 22867-22867/? D/Tinker.TinkerLoader: tryLoad test test 2021-01-21 11:48:05.522 22867-22867/? W/Tinker.TinkerLoader: tryLoadPatchFiles:patch dir not exist:/data/user/0/com.sk.hotfixflutter/tinker 2021-01-21 11:48:05.522 22867-22867/? D/Tinker.DefaultAppLike: onBaseContextAttached: 2021-01-21 11:48:05.522 22867-22867/? I/Tinker.ReflectApp: with app realApplication from manifest applicationName:com.sk.hotfixflutter.AppApplication 2021-01-21 11:48:05.523 22867-22867/? I/Tinker: is use tinker 2021-01-21 11:48:05.524 22867-22867/? I/Tinker.TinkerPatchListener: application maxMemory:512 2021-01-21 11:48:05.524 22867-22867/? W/Tinker.Tinker: tinker patch directory: /data/user/0/com.sk.hotfixflutter/tinker 2021-01-21 11:48:05.525 22867-22867/? I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.14.6 2021-01-21 11:48:05.525 22867-22867/? I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-2, process name:com.sk.hotfixflutter, main process:true, systemOTA:false, fingerPrint:Lenovo/LenovoTB-J706F_PRC/J706F:10/QKQ1.200329.002/12.0.335_201103:user/release-keys, oatDir:null, useInterpretMode:false 2021-01-21 11:48:05.525 22867-22867/? W/Tinker.TinkerLoadResult: can't find patch file, is ok, just return 2021-01-21 11:48:05.525 22867-22867/? I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.sk.hotfixflutter/tinker, code: -2, cost: 1ms 2021-01-21 11:48:05.525 22867-22867/? W/Tinker.Tinker: tinker load fail! 2021-01-21 11:48:05.528 22867-22867/? E/Tinker.ReflectApp: replaceApplicationLike delegateClass:class com.tencent.bugly.beta.tinker.TinkerApplicationLike 2021-01-21 11:48:05.528 22867-22867/? D/Tinker.DefaultAppLike: onCreate 2021-01-21 11:48:05.530 22867-22867/? I/Tinker: find FlutterMain 2021-01-21 11:48:05.530 22867-22867/? I/Tinker: cpu abi is:arm64-v8a 2021-01-21 11:48:05.530 22867-22867/? I/Tinker: flutterPatchInit() called false true 2021-01-21 11:48:05.540 22867-22867/? I/CrashReport: backup java handler: com.tencent.bugly.beta.tinker.TinkerUncaughtExceptionHandler@5e78f7f 2021-01-21 11:48:05.567 22867-22867/? W/CrashReport: [patch] tinker new id is null ,so patch version is invalid 2021-01-21 11:48:05.568 22867-22867/? I/CrashReport: TINKER_ID:1.0.0.1_0121-11-12-59 2021-01-21 11:48:05.568 22867-22867/? I/CrashReport: NEW_TINKER_ID: 2021-01-21 11:48:05.719 22867-22867/? W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry info not exist, just return 2021-01-21 11:48:08.668 22867-22895/? D/CrashReport: app version is: [1.0.0.1], [deviceId:9e7c1f65dfea90ae], channel: [null], buildNo: [0], base tinkerId:[1.0.0.1_0121-11-12-59], patch tinkerId:[], patch version:[], strategyType:[0]

AndroidFirstDeveloper commented 2 years ago

我遇到这个错误:tinker new id is null ,so patch version is invalid。我的基准包、补丁包生成都是成功的,后来我发现是发布补丁包-下发范围 选择的问题,我开始选择的是"开发设备",改成"全量设备"就没问题了。