1

我正在使用 gradle 版本 7.0.0-beta01 并按照本指南将 KtLint 设置到我的项目中。但是我在运行以下命令时遇到错误

./gradlew ktlintFormat

-stacktraceetc 一起运行似乎也没有多大帮助。这是我得到的错误。任何帮助深表感谢。

Execution failed for task ':app:ktlintAndroidTestDebugSourceSetFormat'.
> Querying the mapped value of task ':app:ktlintAndroidTestDebugSourceSetFormat' property 'reporterOutputDir' before task ':app:ktlintAndroidTestDebugSourceSetFormat' has completed is not supported
4

1 回答 1

3

这在 ktlint gradle 插件的更高版本中得到了修复。您可以下降到9.2.1或上升到10.0.0. 看到这个问题

于 2021-05-28T14:15:39.293 回答