【问题标题】:KtLint Execution failed for task ':app:ktlintAndroidTestDebugSourceSetCheck'任务':app:ktlintAndroidTestDebugSourceSetCheck'的KtLint执行失败
【发布时间】:2021-08-11 08:12:09
【问题描述】:

我正在使用 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

【问题讨论】:

    标签: android gradle gradlew ktlint


    【解决方案1】:

    这已在更高版本的 ktlint gradle 插件中得到修复。您可以转至9.2.1 或转至10.0.0。 See this issue.

    【讨论】:

      猜你喜欢
      • 2020-03-07
      • 2023-03-15
      • 1970-01-01
      • 1970-01-01
      • 2018-08-20
      • 2016-05-02
      • 2022-01-19
      • 2021-11-14
      • 2019-02-15
      相关资源
      最近更新 更多