Git Product home page Git Product logo

Comments (13)

shwenzhang avatar shwenzhang commented on July 17, 2024

请补充完整的加载日志,使用"Tinker."过滤。请提交符合规范的issue

from tinker.

adhere534 avatar adhere534 commented on July 17, 2024

receive a patch file: /storage/emulated/0/patch_signed_7zip.apk, isUpgrade:true, file size:1999
get platform:all
SampleResultService receive result:
PatchResult:
isUpgradePatch:true
isSuccess:false
rawPatchFilePath:/storage/emulated/0/patch_signed_7zip.apk
costTime:126
patchVersion:null
patchTinkerID:null
baseTinkerID:null
Throwable: null

from tinker.

shwenzhang avatar shwenzhang commented on July 17, 2024

这里是合成失败,需要把合成过程的日志也补上

from tinker.

adhere534 avatar adhere534 commented on July 17, 2024

/tinker.sample.android W/Tinker.TinkerLoader: tryLoadPatchFiles:patch dir not exist:/data/data/tinker.sample.android/tinker
/tinker.sample.android D/Tinker.DefaultAppLike: onBaseContextAttached:
/tinker.sample.android I/Tinker.SamplePatchListener: application maxMemory:256
/tinker.sample.android W/Tinker.Tinker: tinker patch directory: /data/data/tinker.sample.android/tinker
/tinker.sample.android I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-2
/tinker.sample.android W/Tinker.TinkerLoadResult: can't find patch file, is ok, just return
/tinker.sample.android I/Tinker.DefaultLoadReporter: patch load result, path:/data/data/tinker.sample.android/tinker, code:-2, cost:3
/tinker.sample.android W/Tinker.Tinker: tinker load fail!
/tinker.sample.android D/Tinker.DefaultAppLike: onCreate
/tinker.sample.android D/Tinker.DefaultAppLike: onTrimMemory level:15
/tinker.sample.android E/Tinker.MainActivity: i am on onCreate classloader:dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/tinker.sample.android-1/base.apk
/tinker.sample.android E/Tinker.MainActivity: i am on onCreate string:I am in the base apk
/tinker.sample.android E/Tinker.MainActivity: i am on onResume
/tinker.sample.android W/Tinker.UpgradePatchRetry: onPatchRetryLoad retry info not exist, just return
/tinker.sample.android I/Tinker.SamplePatchListener: receive a patch file: /storage/emulated/0/patch_signed_7zip.apk, isUpgrade:true, file size:1999
/tinker.sample.android I/Tinker.SamplePatchListener: get platform:all

from tinker.

adhere534 avatar adhere534 commented on July 17, 2024

receive a patch file: /storage/emulated/0/patch_signed_7zip.apk, isUpgrade:true, file size:4221
get platform:all
SampleResultService receive result:
PatchResult:
isUpgradePatch:true
isSuccess:false
rawPatchFilePath:/storage/emulated/0/patch_signed_7zip.apk
costTime:38
patchVersion:null
patchTinkerID:null
baseTinkerID:null
Throwable: null

from tinker.

adhere534 avatar adhere534 commented on July 17, 2024

patch.info没有生成
tryLoadPatchFiles:patch info not exist:/data/data/tinker.sample.android/tinker/patch.info

patchVersion:null
patchTinkerID:null
baseTinkerID:null
Throwable: null
这几个空的 是什么情况?

from tinker.

shwenzhang avatar shwenzhang commented on July 17, 2024

是在合成的时候错误了,你要看合成过程的日志
'''java
isSuccess:false
'''

from tinker.

adhere534 avatar adhere534 commented on July 17, 2024

没看见sample:patch进程起来
image

我用的Github的sample 代码没动 就动了 gradle参数oldAPk 和TinkerId
然后跑起来就这样了

from tinker.

shwenzhang avatar shwenzhang commented on July 17, 2024

把Tinker.跟右边only show都去掉看看

from tinker.

adhere534 avatar adhere534 commented on July 17, 2024

image

如果把Tinker.去掉后 会很多log刷屏

from tinker.

shwenzhang avatar shwenzhang commented on July 17, 2024

错误码出来了,-7,TINKER_ID不一致。你的tinkerId是不是类似1.0这样短的字符串?现在会有问题,你把他改成长一点的。用到的apk-parser库有问题

from tinker.

adhere534 avatar adhere534 commented on July 17, 2024

现在Success了
但是
image

怎么还是一个啊

from tinker.

7heaven avatar 7heaven commented on July 17, 2024

:patch 进程并不会在打完补丁后再次启动 只有在接收到补丁文件的时候(TinkerInstaller.onReceiveUpgradePatch或者TinkerInstaller.onReceiveRepairPatch)才会启动:patch进程对补丁进行处理

from tinker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.