{"record":{"id":"d1c49a950afbcf45","repo":"Tencent/tinker","slug":"resource-file-md5-mismatch-but-patch-resource-fil","errorCode":null,"errorMessage":"resource file md5 mismatch, but patch resource file not found!","messagePattern":"resource file md5 mismatch, but patch resource file not found!","errorType":"exception","errorClass":"TinkerRuntimeException","httpStatus":null,"severity":"error","filePath":"tinker-android/tinker-android-lib-no-op/src/main/java/com/tencent/tinker/lib/tinker/TinkerLoadResult.java","lineNumber":309,"sourceCode":"                    ShareTinkerLog.e(TAG, \"patch resource file directory not found, warning why the path is null!!!!\");\n                    throw new TinkerRuntimeException(\"patch resource file directory not found, warning why the path is null!!!!\");\n                }\n                break;\n            case ShareConstants.ERROR_LOAD_PATCH_VERSION_RESOURCE_FILE_NOT_EXIST:\n                if (patchVersionDirectory != null) {\n                    ShareTinkerLog.e(TAG, \"patch resource file not found:%s\", resourceFile.getAbsolutePath());\n                    tinker.getLoadReporter().onLoadFileNotFound(resourceFile,\n                        ShareConstants.TYPE_RESOURCE, false);\n                } else {\n                    //should be not here\n                    ShareTinkerLog.e(TAG, \"patch resource file not found, warning why the path is null!!!!\");\n                    throw new TinkerRuntimeException(\"patch resource file not found, warning why the path is null!!!!\");\n                }\n                break;\n            case ShareConstants.ERROR_LOAD_PATCH_VERSION_RESOURCE_MD5_MISMATCH:\n                if (resourceFile == null) {\n                    ShareTinkerLog.e(TAG, \"resource file md5 mismatch, but patch resource file not found!\");\n                    throw new TinkerRuntimeException(\"resource file md5 mismatch, but patch resource file not found!\");\n                }\n                ShareTinkerLog.e(TAG, \"patch resource file md5 is mismatch: %s\", resourceFile.getAbsolutePath());\n\n                tinker.getLoadReporter().onLoadFileMd5Mismatch(resourceFile,\n                    ShareConstants.TYPE_RESOURCE);\n                break;\n            case ShareConstants.ERROR_LOAD_PATCH_GET_OTA_INSTRUCTION_SET_EXCEPTION:\n                tinker.getLoadReporter().onLoadInterpret(ShareConstants.TYPE_INTERPRET_GET_INSTRUCTION_SET_ERROR, ShareIntentUtil.getIntentInterpretException(intentResult));\n                break;\n            case ShareConstants.ERROR_LOAD_PATCH_OTA_INTERPRET_ONLY_EXCEPTION:\n                tinker.getLoadReporter().onLoadInterpret(ShareConstants.TYPE_INTERPRET_COMMAND_ERROR, ShareIntentUtil.getIntentInterpretException(intentResult));\n                break;\n            case ShareConstants.ERROR_LOAD_OK:\n                ShareTinkerLog.i(TAG, \"oh yeah, tinker load all success\");\n                tinker.setTinkerLoaded(true);\n                // get load dex\n                dexes = ShareIntentUtil.getIntentPatchDexPaths(intentResult);\n                libs = ShareIntentUtil.getIntentPatchLibsPaths(intentResult);","sourceCodeStart":291,"sourceCodeEnd":327,"githubUrl":"https://github.com/Tencent/tinker/blob/1b7ea02c239840f563ea64fb5bd286eb98d4011e/tinker-android/tinker-android-lib-no-op/src/main/java/com/tencent/tinker/lib/tinker/TinkerLoadResult.java#L291-L327","documentation":"Error \"resource file md5 mismatch, but patch resource file not found!\" thrown in Tencent/tinker.","triggerScenarios":"Thrown at tinker-android/tinker-android-lib-no-op/src/main/java/com/tencent/tinker/lib/tinker/TinkerLoadResult.java:309 when the library encounters an invalid state.","commonSituations":"Thrown in TinkerLoadResult.parseTinkerResult on ERROR_LOAD_PATCH_VERSION_RESOURCE_MD5_MISMATCH when resourceFile is null. Indicates patch resource corruption with a lost file reference.","solutions":["Regenerate or re-download the patch; the resource file MD5 does not match the patch info and the file reference is missing.","Ensure the resource patch step stores a non-null resourceFile before verification."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1b7ea02c239840f563ea64fb5bd286eb98d4011e","analyzedAt":"2026-08-14T15:16:52.110Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}