Android maven plugin to generate multiple dex files

情到浓时终转凉″ 提交于 2019-12-11 03:09:00

问题


How can I use android maven plugin to generate multiple dex files instead one to avoid the android 64k method problem? Is possible to do that using this plugin or I have to use gradle to do that?

Solution: With this pull request https://github.com/simpligility/android-maven-plugin/pull/482 the plugin will be able to create android applications that will work ok with the new Android Multidex Support Library


回答1:


I have seen in the change log of the android-maven-plugin version 4.0.0-rc.1 support multi-dex. See https://code.google.com/p/maven-android-plugin/wiki/Changelog Also in the source https://github.com/simpligility/android-maven-plugin/blob/master/src/main/java/com/jayway/maven/plugins/android/phase08preparepackage/DexMojo.java are multi-dex suport. But I have not seen how to configure dex in the pom.xml file (no docu jet). Maybe this help https://groups.google.com/forum/#!topic/maven-android-developers/Ren55dpnzsw



来源:https://stackoverflow.com/questions/26533280/android-maven-plugin-to-generate-multiple-dex-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!