蚂蚁每次重建库项目 [英] Ant rebuilding library projects every time
问题描述
我有一个包含两个 Android 库项目的 Android 项目.
I have an Android project that includes two Android Library projects.
我正在使用命令 ant debug
来构建项目,大约需要 1 分 20 秒.我算过,编译第一个android库项目用了17秒,编译第二个android库项目用了42秒.
I'm using the command ant debug
to build the project and it takes around 1min and 20sec. I've counted that 17 seconds are used to compile the first android library project and 42 seconds are used to compile the second android library project.
由于这两个依赖项目很少更新,所以没有必要每次都编译它们.
Since these two dependency projects are rarely updated it's not necessary to compile them each time.
如何避免蚂蚁每次构建都编译两个 Android 库项目?
How can I avoid ant compiling the two Android library projects each build?
推荐答案
添加dont.do.deps=1
到您的 local.properties
(或通过其他方式将此属性传递给 ant)
Add
dont.do.deps=1
to your local.properties
(or pass this property to ant some other way)
这篇关于蚂蚁每次重建库项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!