本文介绍了重置 gradle 任务的 UP-TO-DATE 属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有什么方法可以强制重新运行 gradle 任务,或者将 所有 任务重置回非最新状态?
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?
推荐答案
尝试使用重建 Gradle 缓存的 -C rebuild
运行您的构建.
Try to run your build with -C rebuild
that rebuilds Gradle's cache.
在较新版本的 Gradle 中,使用 --rerun-tasks
In newer versions of Gradle, use --rerun-tasks
这篇关于重置 gradle 任务的 UP-TO-DATE 属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!