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

有关于5.0系统以下出现java.lang.NoClassDefFoundError #10

Closed
weimi-king opened this issue Nov 13, 2017 · 1 comment
Closed

有关于5.0系统以下出现java.lang.NoClassDefFoundError #10

weimi-king opened this issue Nov 13, 2017 · 1 comment

Comments

@weimi-king
Copy link

5.0以下或部分机型,会出现NoClassDefFoundError异常crash,原因是方法数已经超出了65535,导致部分方法导入了第二个dex文件中。
解决方法:
1.在build中增加 implementation 'com.android.support:multidex:1.0.1'
2.InitApp类继承MultiDexApplication类
适配5.0以下机型。

@iMeiji
Copy link
Owner

iMeiji commented Nov 14, 2017

@weimi-king thanks

@iMeiji iMeiji closed this as completed Nov 14, 2017
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