首页 > 解决方案 > 在构建结束时控制 gradle 错误日志记录

问题描述

gradle构建失败时,它会输出如下内容。有没有办法控制和/或抑制这种情况。当构建过程中已经报告了错误并且我想摆脱它时,我发现这个输出是不必要的。

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':getInstructions'.
> Build aborted due to errors.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s

标签: gradle

解决方案


推荐阅读