使用 Eclipse,可以使用 multidex 生成 Android 项目来创建多个
dex 文件?在网上搜索我发现如何使用 gradle 来做到这一点,但没有关于使用它
没有 gradle 的 Eclipse
看起来像ADT蚂蚁任务项目 https://android.googlesource.com/platform/tools/base/+/master/legacy/ant-tasks/不再维护(它位于“legacy”文件夹下)。
因此,如果您无法迁移到 Gradle,您可以编辑DexExec任务 https://android.googlesource.com/platform/tools/base/+/master/legacy/ant-tasks/src/main/java/com/android/ant/DexExecTask.java手动。当然,您必须在本地重建项目。
[Edit - 10/25/2014] maven-android-plugin does support multi-dex https://code.google.com/p/maven-android-plugin/wiki/Changelog. However, it currently has a small issue: secondary dex files placed in wrong location. This pull request https://github.com/jayway/maven-android-plugin/pull/482 strives to fix that, so stay tuned! (Fixed in 4.0.0)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)