蚂蚁每次重建库项目 [英] Ant rebuilding library projects every time

查看:22
本文介绍了蚂蚁每次重建库项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含两个 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屋!

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