eclipse 使用eclipse的Android multidex支持库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26530654/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android multidex support library using eclipse
提问by Plebios
Using Eclipse, is possible to generate an Android project using multidex for creating multiple dex files? Searching over the net I found how to do that using gradle but nothing about to use that on Eclipse without gradle
使用 Eclipse,是否可以使用 multidex 生成一个 Android 项目来创建多个 dex 文件?在网上搜索我发现如何使用 gradle 来做到这一点,但没有关于在没有 gradle 的情况下在 Eclipse 上使用它的方法
采纳答案by Alex Lipov
It looks like ADT's ant-tasks projectis no longer maintained (it resides under 'legacy' folder).
So if you can't migrate to Gradle, you can edit the DexExecTaskmanually. You'll have of course to rebuild the project locally..
看起来 ADT 的ant-tasks 项目不再维护(它位于“legacy”文件夹下)。
所以如果你不能迁移到 Gradle,你可以手动编辑DexExecTask。您当然必须在本地重建项目..
[Edit - 10/25/2014]maven-android-plugin does support multi-dex. However, it currently has a small issue: secondary dex files placed in wrong location. This pull requeststrives to fix that, so stay tuned!(Fixed in 4.0.0)
[编辑 - 10/25/2014]maven-android-plugin确实支持 multi-dex。然而,它目前有一个小问题:二级 dex 文件放置在错误的位置。此拉取请求致力于解决该问题,敬请期待!(在 4.0.0 中已修复)