-
Notifications
You must be signed in to change notification settings - Fork 779
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
2019-09-23:有没有遇到64k问题,应该如何解决? #152
Comments
分包(⊙o⊙)… |
手机直接debug本身没有问题,但是打包的时候会出现Unable to execute dex: method ID not in[0, 0xffff]: 65536)这种问题导致打包失败,这是单个dex文件方法数超过64k导致的,基本上引入过多的依赖都会出现这个问题,解决方法: @OverRide |
@zhaoerlei1989 继承 |
有些第三方的也要求继承他们的Application, 哪里继承的来那么多 |
单个dex文件方法超过64k,基本上都是引用过多的依赖才导致的。 @OverRide |
突破65535 限制 实现三步走 同步即可! |
继承 MultiDexApplication后不需要install了,他的父类实现这个方法 |
分包,多dex优化。 |
1、增加multidel依赖 |
|
现在的gradle都是默认配置multidex了,可以作为了解,新的开发者可能不会碰到这种问题 |
使用分包 把classdex分成多个 |
No description provided.
The text was updated successfully, but these errors were encountered: