Atlas Dex分包配置

Dex分包只对Host生效,对Bundle不生效。也就是在Bundle内不能做Dex分包处理,若方法数超过65536,只能拆分Bundle。

android {
    defaultConfig {
        multiDexEnabled true
    }
}

atlas {
    atlasEnabled true
    tBuildConfig {
        atlasMultiDex true
    }
}

如没有配置multiDexEnabled true,则报错:

Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com
.android.dex.DexIndexOverflowException: field ID not in [0, 0xffff]: 65536
上一篇 Atlas框架下通过ViewPager+Fragment加载Bundle的Activity不能回调onActivityResult问题解决
下一篇 Atlas通过RemoteTransactor加载并运行远程Bundle
目录
文章列表
1 数据库结构导出工具DbSchema
数据库结构导出工具DbSchema
2
Jenkins构建vue项目
Jenkins构建vue项目
3
Spring Boot之Web综合开发
Spring Boot之Web综合开发
4
通知神器 — Java调用钉钉群自定义机器人
通知神器 — Java调用钉钉群自定义机器人
5
微信公众平台发送客服消息45015错误
微信公众平台发送客服消息45015错误
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。