蚂蚁重建库项目,每次蚂蚁、项目

2023-09-05 04:05:35 作者:風欥褲衩疍疍涼ァ

我有一个Android项目,其中包括两款Android库项目。

I have an Android project that includes two Android Library projects.

我使用的命令蚂蚁调试建项目,它需要大约1分20秒和。我数有17秒用来编译第一款Android库项目和42秒用来编译第二款Android库项目。

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)