Android的Maven插件生成多个文件,DEX [英] Android maven plugin to generate multiple dex files

查看:340
本文介绍了Android的Maven插件生成多个文件,DEX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何使用Android Maven插件生成多个文件,DEX而不是一个,避免了Android 64K方法的问题?可能使用这个插件做或者我必须使用gradle这个做?

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?

解决方案:通过这个pull请求 https://github.com/simpligility/ Android的Maven的插件/拉/ 482 插件将能够创建,将工作与确定新的Andr​​oid Multidex支持库

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

推荐答案

我已经看到了Android系统的Maven插件版本4.0.0,支持RC.1多DEX的更改日志。
请参见的https://$c$c.google.com/ p / Maven的Andr​​oid平台的插件/维基/变化
另外,在源<一href=\"https://github.com/simpligility/android-maven-plugin/blob/master/src/main/java/com/jayway/maven/plugins/android/phase08$p$pparepackage/DexMojo.java\" rel=\"nofollow\">https://github.com/simpligility/android-maven-plugin/blob/master/src/main/java/com/jayway/maven/plugins/android/phase08$p$pparepackage/DexMojo.java是多DEX询问服务。
但是,我还没有看到如何在pom.xml文件(没有实况JET)配置DEX。
也许这帮助 https://groups.google.com/forum/ #!话题/ Maven的Andr​​oid平台的开发者/ Ren55dpnzsw

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

这篇关于Android的Maven插件生成多个文件,DEX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆