本文介绍了蚂蚁如何禁用pre-德兴R21 +的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我Ant构建需要永远与更新至R21后pre-德兴

hello my ant build takes forever with pre-dexing after updating to r21

[DEX] pre-德兴的myproject /安卓/谷歌播放services_lib /斌/ classes.jar - >类 - 27fa775977cf84dcd4ef76d9015649a6.jar

这增加了一倍以上我的编译时间。 pre-德兴会加快速度,如果我只有predexing一次,但实际上,我重新配置我的项目多次为不同的Ant构建,多次。因此,他们都pre-DEX,这是很烦人的。

This more than doubles my compile time. Pre-dexing would speed things up if I was only predexing once, but I'm actually reconfiguring my project several times for different ant builds, many times. So they all pre-dex , it is very annoying.

有一个标志,我可以在我的Ant脚本使?

is there a flag I can enable in my ant script?

我看蚂蚁Maven的github上项目,但看到没有办法关闭这个功能的,我不是100%确定的项目,虽然相关。

I've looked at an ant-maven github project but see no way of turning this off, I'm not 100% sure that project is related though.

帮助?

推荐答案

从build.xml文件,它看起来像你可以改变属性out.dex.input.absolute.dir所有不同的构建为指向一个单独的目录外目标目录。如果pre-dexed文件是present,我想构建系统将不会尝试$ P $再次对DEX吧。

From build.xml , it looks like you can change the property out.dex.input.absolute.dir for all different builds to point to a single directory outside target directory. If the pre-dexed file is present, i guess build system will not try to pre-dex it again.

out.dex.input.absolute.dir

使用的Maven Android插件],后此处表示predex被默认关闭,虽然职位一天老了,所以也许你需要获得插件的最新测试版。您可以通过使用禁用predex

Using maven android plugin ], the post here indicates that predex is turned off by default , though the post is a day old, so maybe you need to get the latest beta version of plugin. You can disable predex by using

    <dexPreDex>false</dexPreDex>

这篇关于蚂蚁如何禁用pre-德兴R21 +的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 05:28
查看更多