【问题标题】:Android maven plugin to generate multiple dex filesAndroid maven插件生成多个dex文件
【发布时间】:2014-10-27 22:47:16
【问题描述】:

如何使用android maven插件生成多个dex文件而不是一个以避免android 64k方法问题?是否可以使用这个插件来做到这一点,或者我必须使用 gradle 来做到这一点?

解决方案:通过此拉取请求 https://github.com/simpligility/android-maven-plugin/pull/482,插件将能够创建可以与新的 Android Multidex 支持库一起正常工作的 Android 应用程序

【问题讨论】:

    标签: android maven android-maven-plugin


    【解决方案1】:

    我在 android-maven-plugin 版本 4.0.0-rc.1 支持 multi-dex 的更改日志中看到了。 见https://code.google.com/p/maven-android-plugin/wiki/Changelog 同样在源https://github.com/simpligility/android-maven-plugin/blob/master/src/main/java/com/jayway/maven/plugins/android/phase08preparepackage/DexMojo.java 中是多 dex 支持。 但是我还没有看到如何在 pom.xml 文件中配置 dex(没有 docu jet)。 也许这有助于https://groups.google.com/forum/#!topic/maven-android-developers/Ren55dpnzsw

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-03-24
    • 2015-02-25
    • 1970-01-01
    • 1970-01-01
    • 2015-09-25
    • 2023-03-03
    • 1970-01-01
    相关资源
    最近更新 更多