如何使用android maven插件生成多个dex文件,而不是一个以避免android 64k方法问题?可以使用此插件做到这一点,还是我必须使用gradle做到这一点?
解决方案:通过此拉取请求https://github.com/simpligility/android-maven-plugin/pull/482,该插件将能够创建可与新的Android Multidex支持库正常工作的android应用程序
最佳答案
我在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中也有multi-dex suport。
但是我还没有看到如何在pom.xml文件(没有docu jet)中配置dex。
也许此帮助https://groups.google.com/forum/#!topic/maven-android-developers/Ren55dpnzsw
关于android - Android Maven插件生成多个dex文件,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26533280/