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

Tinker如何兼容Multidex #5

Open
dustookk opened this issue Sep 5, 2016 · 2 comments
Open

Tinker如何兼容Multidex #5

dustookk opened this issue Sep 5, 2016 · 2 comments

Comments

@dustookk
Copy link

dustookk commented Sep 5, 2016

您好, 现在很多app早已超过了65535的方法数限制, 请问微信tinker增量dex的方案如何兼容multidex? 谢谢回答.

@shwenzhang
Copy link
Member

Tinker是兼容MultiDex方案的,对于Dalvik,我们是采用将补丁Dex插入到pathlist的前面。对于Art平台,我们是采用parent classloader方案。Dalvik不采用parent classloader是因为Dalvik存在一个checkasses

@dustookk
Copy link
Author

dustookk commented Sep 6, 2016

如果增量dex可以直接插入pathlist的话,是否说明:

  1. 要想和multidex方案兼容则没有增量dex和旧dex合并的过程.
  2. 要想和multidex方案兼容则补丁dex是一个完整的dex文件, 和 nuwa 方案下发的补丁基本一样.

感谢回复 ^_^

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

No branches or pull requests

2 participants