本文介绍了重置gradle任务的UP-TO-DATE属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种方法可以强制重新运行gradle任务,或将所有任务重置为非UP-TO-DATE状态?
-C重建来运行构建。
在较新版本的Gradle中,使用 - rerun-tasks
Is there a way I can force a gradle task to run again, or reset all tasks back to the not UP-TO-DATE state?
解决方案
Try to run your build with -C rebuild
that rebuilds Gradle's cache.
In newer versions of Gradle, use --rerun-tasks
这篇关于重置gradle任务的UP-TO-DATE属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-27 02:05