在 ant for Android 中启用 `--multi-dex` 选项 [英] Enable `--multi-dex` option in ant for Android

查看:28
本文介绍了在 ant for Android 中启用 `--multi-dex` 选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为 gradle 构建系统启用 multi-dex 选项很容易,但我还没有找到如何为 ant 构建启用此选项的示例.如何存档?

It's easy to enable multi-dex option for gradle build system, but I haven't found example how I can enable this option for ant building. How can archive this?

推荐答案

我们有两个选择:

  1. 更改DexExecTask【多dex引入新参数】,编译ant.jar,使用这个jar进行构建.我不喜欢这个选项,因为我们必须为所有团队成员提供更新的 ant.jar.
  2. 修改项目 build.xml 文件.我发现了很棒的 ant 构建文件,其中包含支持多 dex 的所有修改:https://github.com/ruboto/ruboto-irb/blob/master/build.xml

希望它有所帮助.

这篇关于在 ant for Android 中启用 `--multi-dex` 选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆