Ant how to disable pre-uninstall r21 +

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

[dex] Pre-Dexing myproject/android/google-play-services_lib/bin/classes.jar -> classes-27fa775977cf84dcd4ef76d9015649a6.jar

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 multiple times for different ant builds, many times. So they are all pre-dex, which is very annoying.

Is there a flag that can be turned on in my ant script?

I looked at the ant -maven github project but don't see an option to disable it, but I'm not sure if the project is related to this.

help?

+3


source to share


1 answer


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

out.dex.input.absolute.dir

      



Using the maven android plugin ] the message here indicates that predex is disabled by default, although the message is daytime, so maybe you need to get the latest beta version of the plugin. You can disable predex using

    <dexPreDex>false</dexPreDex>

      

+5


source







All Articles