The Wayback Machine - http://web.archive.org/web/20201006115716/https://github.com/Tencent/tinker/issues/1414
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.tencent.tinker.build.util.TinkerPatchException: there's loader classes added in new primary dex, such these changes will not take effect #1414

Open
demoface opened this issue Jun 17, 2020 · 3 comments

Comments

@demoface
Copy link

@demoface demoface commented Jun 17, 2020

Warning:ignoreWarning is false, but we found there's loader classes added in new primary dex, such these changes will not take effect.
added classes: {Lcom/tencent/tinker/loader/AppInfoChangedBlocker$HackerCallback;,Lcom/tencent/tinker/loader/AppInfoChangedBlocker;,Lcom/tencent/tinker/loader/app/TinkerInlineFenceAction;,Lcom/tencent/tinker/loader/TinkerClassLoader$CompoundEnumeration;,Lcom/tencent/tinker/loader/TinkerClassLoader;,Lcom/tencent/tinker/loader/NewClassLoaderInjector;}

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:tinkerPatchHuolalaRelease'.

java.lang.RuntimeException: com.tencent.tinker.build.util.TinkerPatchException: there's loader classes added in new primary dex, such these changes will not take effect.
added classes: {Lcom/tencent/tinker/loader/AppInfoChangedBlocker$HackerCallback;,Lcom/tencent/tinker/loader/AppInfoChangedBlocker;,Lcom/tencent/tinker/loader/app/TinkerInlineFenceAction;,Lcom/tencent/tinker/loader/TinkerClassLoader$CompoundEnumeration;,Lcom/tencent/tinker/loader/TinkerClassLoader;,Lcom/tencent/tinker/loader/NewClassLoaderInjector;}

@liangdong9676

Loading…

@liangdong9676 liangdong9676 commented Jun 18, 2020

我基准包使用的Tinker1.9.14.3,打补丁包时使用1.19.14.7,也会报错。。。所以基准包和补丁包应该保持Tinker-SDK的同一版本。。。所以当要用新的Tinker版本,应该重新打基准包。

@Code6666

Loading…

@Code6666 Code6666 commented Jul 14, 2020

遇到了同样的问题,我的基准包和打补丁包的Tinker版本是一致的 都是1.9.14.6 但是仍然出现了 上述问题

com.tencent.tinker.build.util.TinkerPatchException: some loader class has been changed in new primary dex. Such these changes will not take effect!! related classes: {Lcom/tencent/tinker/loader/shareutil/ShareOatUtil$1;,Lcom/tencent/tinker/loader/SystemClassLoaderAdder$1;,Lcom/tencent/tinker/loader/shareutil/ShareElfFile$1;,Lcom/tencent/tinker/loader/TinkerDexOptimizer$StreamConsumer$1;,Lcom/tencent/tinker/loader/TinkerDexLoader$1;,Lcom/tencent/tinker/loader/hotplug/interceptor/ServiceBinderInterceptor$1;,Lcom/tencent/tinker/loader/hotplug/IncrementComponentManager$1;,Lcom/tencent/tinker/loader/TinkerDexOptimizer$1;}

@HymanYang

Loading…

@HymanYang HymanYang commented Jul 28, 2020

tinker:1.9.14.7,
遇到了同样的情况,有解决方案了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.