美文网首页
方法数超过64K异常

方法数超过64K异常

作者: Wang_Mr | 来源:发表于2018-04-02 10:18 被阅读0次

Cannot merge new index 66221 into a non-jumbo instruction!

解决办法:添加支持库

compile 'com.android.support:multidex:1.0.3'

然后自定义的Application添加

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }

在Android的模块gradle文件的defaultConfig默认配置里面增加:

multiDexEnabled true

相关文章

网友评论

      本文标题:方法数超过64K异常

      本文链接:https://www.haomeiwen.com/subject/vfethftx.html