BuglyDevTeam / Bugly-Android-Demo

Bugly Android SDK 使用例子
Apache License 2.0
812 stars 307 forks source link

Tinker.DefaultLoadReporter: patch loadReporter onLoadPatchListenerReceiveFail: patch receive fail: code: -5 #345

Open hymytt opened 2 years ago

hymytt commented 2 years ago

我已经吧lssues都看了,没有-5的问题,我看了下源码应该是JIT dalvik.vm.usejit 字段 不等于null , 并且等于true,dalvik.vm.usejitprofiles不为空,还有sdk版本<24,才返回 code -5;我把JIT在清单文件关闭,也还是报这个错误,请问是为什么,?

异常类型

合并补丁包时,触发的异常

手机型号

模拟器

手机系统版本

6.0.1

Tinker版本

1.9.14.18

gradle版本

4.0.0

系统

模拟器

堆栈/日志

12-29 16:17:45.877 10271-10271/? D/Tinker.TinkerLoader: tryLoad test test 12-29 16:17:45.881 10271-10271/? W/Tinker.TinkerLoader: tryLoadPatchFiles:patch dir not exist:/data/user/0/com.myfp.myfund/tinker 12-29 16:17:45.882 10271-10271/? D/Tinker.DefaultAppLike: onBaseContextAttached: 12-29 16:17:45.883 10271-10271/? I/Tinker.ReflectApp: with app realApplication from manifest applicationName:com.myfp.myfund.App 12-29 16:17:45.887 10271-10271/? V/Tinker.TinkerPatchListener: application maxMemory:192 12-29 16:17:45.888 10271-10271/? W/Tinker.Tinker: tinker patch directory: /data/user/0/com.myfp.myfund/tinker 12-29 16:17:45.890 10271-10271/? I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.14.18 12-29 16:17:45.890 10271-10271/? I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-2, process name:com.myfp.myfund, main process:true, systemOTA:false, fingerPrint:OnePlus/OnePlus2/OnePlus2:6.0.1/MMB29M/1447841200:user/release-keys, oatDir:null, useInterpretMode:false 12-29 16:17:45.890 10271-10271/? W/Tinker.TinkerLoadResult: can't find patch file, is ok, just return 12-29 16:17:45.890 10271-10271/? I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.myfp.myfund/tinker, code: -2, cost: 4ms 12-29 16:17:45.890 10271-10271/? W/Tinker.Tinker: tinker load fail! 12-29 16:17:46.069 10271-10271/? E/Tinker.ReflectApp: replaceApplicationLike delegateClass:class com.tencent.bugly.beta.tinker.TinkerApplicationLike 12-29 16:17:46.069 10271-10271/? D/Tinker.DefaultAppLike: onCreate 12-29 16:17:46.952 10271-10271/? D/Tinker.TinkerLoader: [PendingLog @ 2021-12-29 16:17:45.877] tryLoad test test 12-29 16:17:46.952 10271-10271/? W/Tinker.TinkerLoader: [PendingLog @ 2021-12-29 16:17:45.881] tryLoadPatchFiles:patch dir not exist:/data/user/0/com.myfp.myfund/tinker 12-29 16:17:46.952 10271-10271/? D/Tinker.DefaultAppLike: [PendingLog @ 2021-12-29 16:17:45.882] onBaseContextAttached: 12-29 16:17:48.113 10271-10271/? W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry info not exist, just return 12-29 16:17:50.521 10271-10271/? V/Tinker.TinkerManager: onDownloadSuccess. 12-29 16:17:50.521 10271-10271/? V/Tinker.TinkerManager: check if has new patch. 12-29 16:17:50.527 10271-10271/? V/Tinker.TinkerManager: has new patch. 12-29 16:17:50.528 10271-10271/? V/Tinker.TinkerManager: starting patch. 12-29 16:17:50.529 10271-10271/? V/Tinker.TinkerPatchListener: receive a patch file: /data/user/0/com.myfp.myfund/app_tmpPatch/tmpPatch.apk, file size:6952 12-29 16:17:50.532 10271-10271/? I/Tinker.DefaultLoadReporter: patch loadReporter onLoadPatchListenerReceiveFail: patch receive fail: /data/user/0/com.myfp.myfund/app_tmpPatch/tmpPatch.apk, code: -5

hymytt commented 2 years ago