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

新問題, 如何生成多個包? #11

Open
alexliyu opened this issue Sep 11, 2016 · 2 comments
Open

新問題, 如何生成多個包? #11

alexliyu opened this issue Sep 11, 2016 · 2 comments
Labels

Comments

@alexliyu
Copy link

使用這個插件,主包的大小降下來了,1.5mb左右,但是第二個包卻有7mb, 如何保證每個包小於4mb?因爲要兼容android 2.x, 所以也就是是否可以生成第三個包?

@ceabie
Copy link
Collaborator

ceabie commented Sep 19, 2016

可以使用隐藏的可用配置:
-dex-param --set-max-idx-number=30000

30000需要你自己调试大小,最大50000(虽然最大65535,但没有意义),最小不能小于第一个dex的数量,否则会出现DexException: Too many classes in --main-dex-list, main dex capacity exceeded

不能指定具体类进行>=3以后分包

@TangXiaoLv
Copy link
Owner

@alexliyu 已更新文档和demo配置,可以测试下

@ybADMIN ybADMIN mentioned this issue Nov 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants