tinker icon indicating copy to clipboard operation
tinker copied to clipboard

混淆打补丁失败,不混淆可成功

Open chileraaaa opened this issue 2 years ago • 2 comments

UnZipping apk to D:\androidWorkspace\learn\hitfix\app\build\tmp\tinkerPatch\app-release-old UnZipping apk to D:\androidWorkspace\learn\hitfix\app\build\tmp\tinkerPatch\app-release-new found modify resource: AndroidManifest.xml, but it is AndroidManifest.xml, just ignore! Check for loader classes in dex: classes.dex Collect class descriptors in classes.dex Check if loader classes in classes.dex refer to any classes that is not in loader class patterns. FATAL: method 'findField:LLL' in loader class 'Lcom/tencent/tinker/loader/NewClassLoaderInjector;' refers to method 'j:LLLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'installDexes:VLLLLZ' in loader class 'Lcom/tencent/tinker/loader/SystemClassLoaderAdder;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'checkComplete:ZLLL' in loader class 'Lcom/tencent/tinker/loader/TinkerArkHotLoader;' refers to method 'e:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'loadTinkerArkHot:ZLLL' in loader class 'Lcom/tencent/tinker/loader/TinkerArkHotLoader;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'loadTinkerArkHot:ZLLL' in loader class 'Lcom/tencent/tinker/loader/TinkerArkHotLoader;' refers to method 'e:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'checkComplete:ZLLLL' in loader class 'Lcom/tencent/tinker/loader/TinkerDexLoader;' refers to method 'e:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'loadTinkerJars:ZLLLLZZ' in loader class 'Lcom/tencent/tinker/loader/TinkerDexLoader;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'loadTinkerJars:ZLLLLZZ' in loader class 'Lcom/tencent/tinker/loader/TinkerDexLoader;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'loadTinkerJars:ZLLLLZZ' in loader class 'Lcom/tencent/tinker/loader/TinkerDexLoader;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'loadTinkerJars:ZLLLLZZ' in loader class 'Lcom/tencent/tinker/loader/TinkerDexLoader;' refers to method 'e:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'loadTinkerJars:ZLLLLZZ' in loader class 'Lcom/tencent/tinker/loader/TinkerDexLoader;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'loadTinkerJars:ZLLLLZZ' in loader class 'Lcom/tencent/tinker/loader/TinkerDexLoader;' refers to method 'f:LLLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'loadTinkerJars:ZLLLLZZ' in loader class 'Lcom/tencent/tinker/loader/TinkerDexLoader;' refers to method 'f:LLLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'run:Z' in loader class 'Lcom/tencent/tinker/loader/TinkerDexOptimizer$OptimizeWorker;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'checkComplete:ZLLLL' in loader class 'Lcom/tencent/tinker/loader/TinkerResourceLoader;' refers to method 'e:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'loadTinkerResources:ZLLL' in loader class 'Lcom/tencent/tinker/loader/TinkerResourceLoader;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'loadTinkerResources:ZLLL' in loader class 'Lcom/tencent/tinker/loader/TinkerResourceLoader;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method ':VL' in loader class 'Lcom/tencent/tinker/loader/TinkerRuntimeException;' refers to method 'e:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method ':VLL' in loader class 'Lcom/tencent/tinker/loader/TinkerRuntimeException;' refers to method 'e:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'checkComplete:ZLLL' in loader class 'Lcom/tencent/tinker/loader/TinkerSoLoader;' refers to method 'e:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'uncaughtException:VLL' in loader class 'Lcom/tencent/tinker/loader/TinkerUncaughtHandler;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'assignStub:LLIZ' in loader class 'Lcom/tencent/tinker/loader/hotplug/ActivityStubManager;' refers to method 'e:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'loadClass:LLZ' in loader class 'Lcom/tencent/tinker/loader/hotplug/interceptor/ServiceBinderInterceptor$1;' refers to method 'e:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'invoke:LLLL' in loader class 'Lcom/tencent/tinker/loader/hotplug/interceptor/ServiceBinderInterceptor$FakeClientBinderHandler;' refers to method 'e:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'processIntent:ZLL' in loader class 'Lcom/tencent/tinker/loader/hotplug/interceptor/TinkerHackInstrumentation;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method ':VLLLLLLLL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareDexDiffPatchInfo;' refers to method 'e:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method ':VLLLLLLLL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareDexDiffPatchInfo;' refers to method 'e:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method ':VL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareElfFile$ElfHeader;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method ':VL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareElfFile$ElfHeader;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method ':VL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareElfFile$ElfHeader;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method ':VL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareElfFile$ElfHeader;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method ':VLI' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareElfFile$ProgramHeader;' refers to method 'c:LLI' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method ':VLI' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareElfFile$SectionHeader;' refers to method 'c:LLI' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'readUntilLimit:VLLL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareElfFile;' refers to method 'i:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'getSection:LL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareElfFile;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'getSegment:LL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareElfFile;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method ':VL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareFileLockHelper;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'getBooleanExtra:ZLLZ' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareIntentUtil;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'getIntExtra:ILLI' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareIntentUtil;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'getLongExtra:JLLJ' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareIntentUtil;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'getSerializableExtra:LLL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareIntentUtil;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'getStringArrayListExtra:LLL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareIntentUtil;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'getStringExtra:LLL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareIntentUtil;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'getPatchInfoFile:LL' in loader class 'Lcom/tencent/tinker/loader/shareutil/SharePatchFileUtil;' refers to method 'f:LLLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'getPatchInfoLockFile:LL' in loader class 'Lcom/tencent/tinker/loader/shareutil/SharePatchFileUtil;' refers to method 'f:LLLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'getPatchVersionDirectory:LL' in loader class 'Lcom/tencent/tinker/loader/shareutil/SharePatchFileUtil;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'optimizedPathFor:LLL' in loader class 'Lcom/tencent/tinker/loader/shareutil/SharePatchFileUtil;' refers to method 'e:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'safeDeleteFile:ZL' in loader class 'Lcom/tencent/tinker/loader/shareutil/SharePatchFileUtil;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'safeDeleteFile:ZL' in loader class 'Lcom/tencent/tinker/loader/shareutil/SharePatchFileUtil;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'readAndCheckProperty:LL' in loader class 'Lcom/tencent/tinker/loader/shareutil/SharePatchInfo;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'rewritePatchInfoFile:ZLL' in loader class 'Lcom/tencent/tinker/loader/shareutil/SharePatchInfo;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'findConstructor:LLL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareReflectUtil;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'findField:LLL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareReflectUtil;' refers to method 'j:LLLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'findMethod:LLLL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareReflectUtil;' refers to method 'j:LLLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'findMethod:LLLL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareReflectUtil;' refers to method 'j:LLLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'parseResPatchInfoFirstLine:VLL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareResPatchInfo;' refers to method 'e:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'toString:L' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareResPatchInfo;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'getCurrentInstructionSet:L' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareTinkerInternals;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'getManifestTinkerID:LL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareTinkerInternals;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'getProcessNameInternal:LL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareTinkerInternals;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'getSafeModeCount:IL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareTinkerInternals;' refers to method 'e:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'getTinkerSwitchSPKey:LL' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareTinkerInternals;' refers to method 'e:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'setSafeModeCount:VLI' in loader class 'Lcom/tencent/tinker/loader/shareutil/ShareTinkerInternals;' refers to method 'e:LLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'onFailed:VLLL' in loader class 'Lcom/tencent/tinker/loader/TinkerDexLoader$1;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'onStart:VLL' in loader class 'Lcom/tencent/tinker/loader/TinkerDexLoader$1;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'onSuccess:VLLL' in loader class 'Lcom/tencent/tinker/loader/TinkerDexLoader$1;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'tryLoadPatchFilesInternal:VLL' in loader class 'Lcom/tencent/tinker/loader/TinkerLoader;' refers to method 'h:LL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded. FATAL: method 'tryLoadPatchFilesInternal:VLL' in loader class 'Lcom/tencent/tinker/loader/TinkerLoader;' refers to method 'f:LLLL' in class 'Lb/a/a/a/a;' which is not in loader class, this may cause crash when patch is loaded.

Execution failed for task ':app:tinkerPatchRelease'.

com.tencent.tinker.build.util.TinkerPatchException: There are fatal reasons that cause Tinker interrupt patch generating procedure, see logs above.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

chileraaaa avatar Oct 29 '22 18:10 chileraaaa

解决了吗

joeyzhao1005 avatar Mar 03 '23 10:03 joeyzhao1005

请尝试 defaultConfig { multiDexEnabled true multiDexKeepProguard file("tinker_multidexkeep.pro") //这句 }

liulei000 avatar Mar 08 '23 03:03 liulei000