{"action":"created","issue":{"url":"https://api.github.com/repos/Tencent/tinker/issues/48","repository_url":"https://api.github.com/repos/Tencent/tinker","labels_url":"https://api.github.com/repos/Tencent/tinker/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/Tencent/tinker/issues/48/comments","events_url":"https://api.github.com/repos/Tencent/tinker/issues/48/events","html_url":"https://github.com/Tencent/tinker/issues/48","id":179389062,"number":48,"title":"R","user":{"login":"liuxang","id":17467300,"avatar_url":"https://avatars.githubusercontent.com/u/17467300?v=3","gravatar_id":"","url":"https://api.github.com/users/liuxang","html_url":"https://github.com/liuxang","followers_url":"https://api.github.com/users/liuxang/followers","following_url":"https://api.github.com/users/liuxang/following{/other_user}","gists_url":"https://api.github.com/users/liuxang/gists{/gist_id}","starred_url":"https://api.github.com/users/liuxang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liuxang/subscriptions","organizations_url":"https://api.github.com/users/liuxang/orgs","repos_url":"https://api.github.com/users/liuxang/repos","events_url":"https://api.github.com/users/liuxang/events{/privacy}","received_events_url":"https://api.github.com/users/liuxang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-27T03:26:37Z","updated_at":"2016-09-27T03:44:47Z","closed_at":null,"body":"工程中新增了R.mipmap.cc。\r\ngradle中设置了正确的applyResourceMapping。\r\n>\r\nUnZipping apk to /Users/xiang/develop/studioSpace/Test2/sma/build/outputs/tinkerPatch/debug/sma-debug\r\nCheck for loader classes in dex: ../sma-debug-0927-10-32-53/classes.dex\r\nFound modify resource: res/layout/activity_main.xml\r\nFound add resource: res/mipmap-hdpi-v4/cc.png\r\nFound large modify resource: resources.arsc size:192648\r\n\r\n补丁包中存在这个资源\r\n\r\n>MacBook-Air:tinker xiang$ ls  ~/develop/studioSpace/Test2/sma/build/outputs/tinkerPatch/debug/patch_signed_7zip/res/mipmap-hdpi-v4/\r\ncc.png\r\n\r\n\r\npush补丁包也加载成功了\r\n>DefaultTinkerResultService received a result:\r\n                                                                             PatchResult: \r\n                                                                             isUpgradePatch:true\r\n                                                                             isSuccess:true\r\n                                                                             rawPatchFilePath:/storage/emulated/0/patch_signed_7zip.apk\r\n                                                                             costTime:1114\r\n                                                                             patchVersion:ac7dd2f4c2d526ed599275db1092f22c\r\n                                                                             patchTinkerID:mytinkerId\r\n                                                                             baseTinkerID:mytinkerId\r\n\r\n但是仍然Resources$NotFoundException。\r\n\r\n以下是grep tinker.* 日志\r\n```\r\nI/Tinker.UpgradePatch(18975): UpgradePatch tryPatch:dexDiffMd5:ac7dd2f4c2d526ed599275db1092f22c\r\nI/Tinker.UpgradePatch(18975): UpgradePatch tryPatch:patchVersionDirectory:/data/data/com.test/tinker/patch-ac7dd2f4\r\nW/Tinker.UpgradePatch(18975): UpgradePatch after /storage/emulated/0/patch_signed_7zip.apk size:22867, /data/data/com.test/tinker/patch-ac7dd2f4/patch-ac7dd2f4.apk size:22867\r\nW/Tinker.DexDiffPatchInternal(18975): success recover dex file: /data/data/com.test/tinker/patch-ac7dd2f4/dex/classes.dex.jar, use time: 715\r\nI/Tinker.DexDiffPatchInternal(18975): try Extracting /data/data/com.test/tinker/patch-ac7dd2f4/dex/test.dex.jar\r\nI/Tinker.DexDiffPatchInternal(18975): isExtractionSuccessful: true\r\nI/Tinker.DexDiffPatchInternal(18975): success dex optimize file, path: /data/data/com.test/tinker/patch-ac7dd2f4/dex/classes.dex.jar, use time: 63\r\nI/Tinker.DexDiffPatchInternal(18975): success dex optimize file, path: /data/data/com.test/tinker/patch-ac7dd2f4/dex/test.dex.jar, use time: 52\r\nI/Tinker.DexDiffPatchInternal(18975): recover dex result:true, cost:848, isUpgradePatch:true\r\nW/Tinker.BsDiffPatchInternal(18975): patch recover, library is not contained\r\nI/Tinker.ResDiffPatchInternal(18975): res dir: /data/data/com.test/tinker/patch-ac7dd2f4/res/, meta: resArscMd5:0796b746b4eec787e687c3414391ab55\r\nI/Tinker.ResDiffPatchInternal(18975): arscBaseCrc:3032886354\r\nI/Tinker.ResDiffPatchInternal(18975): pattern:res/.*\r\nI/Tinker.ResDiffPatchInternal(18975): pattern:assets/.*\r\nI/Tinker.ResDiffPatchInternal(18975): pattern:resources\\.arsc\r\nI/Tinker.ResDiffPatchInternal(18975): addedSet:res/mipmap-hdpi-v4/cc.png\r\nI/Tinker.ResDiffPatchInternal(18975): modifiedSet:res/layout/activity_main.xml\r\nI/Tinker.ResDiffPatchInternal(18975): largeModifiedSet:resources.arsc\r\nW/Tinker.ResDiffPatchInternal(18975): success recover large modify file:/data/data/com.test/tinker/patch-ac7dd2f4/res/resources.arsc , file size:192648, use time:82\r\nW/Tinker.ResDiffPatchInternal(18975): success recover all large modify use time:86\r\nI/Tinker.PatchFileUtil(18975): safeDeleteFile, try to delete path: /data/data/com.test/tinker/patch-ac7dd2f4/res/resources.arsc\r\n```\r\n\r\n我看了文档和日志没想到哪里出现问题。\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Tencent/tinker/issues/comments/249758918","html_url":"https://github.com/Tencent/tinker/issues/48#issuecomment-249758918","issue_url":"https://api.github.com/repos/Tencent/tinker/issues/48","id":249758918,"user":{"login":"shwenzhang","id":8335303,"avatar_url":"https://avatars.githubusercontent.com/u/8335303?v=3","gravatar_id":"","url":"https://api.github.com/users/shwenzhang","html_url":"https://github.com/shwenzhang","followers_url":"https://api.github.com/users/shwenzhang/followers","following_url":"https://api.github.com/users/shwenzhang/following{/other_user}","gists_url":"https://api.github.com/users/shwenzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/shwenzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shwenzhang/subscriptions","organizations_url":"https://api.github.com/users/shwenzhang/orgs","repos_url":"https://api.github.com/users/shwenzhang/repos","events_url":"https://api.github.com/users/shwenzhang/events{/privacy}","received_events_url":"https://api.github.com/users/shwenzhang/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T03:44:47Z","updated_at":"2016-09-27T03:44:47Z","body":"麻烦将加载补丁以及crash的详细信息也贴出来"}}
{"actor":{"display_login":"shwenzhang"}}