我正在使用 gradle 版本 7.0.0-beta01 和以下 this guide将 KtLint 设置到我的项目中。但我在运行以下命令时遇到错误
./gradlew ktlintFormat
使用 -stacktrace
等运行似乎也没有多大帮助。这是我收到的错误。非常感谢任何帮助。
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
最佳答案
这已在 ktlint gradle 插件的更高版本中修复。您可以向下至 9.2.1
或向上至 10.0.0
。 See this issue .
关于android - KtLint 任务 ':app:ktlintAndroidTestDebugSourceSetCheck' 执行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67648063/