2

I am using gradle version 7.0.0-beta01 and following this guide to setup KtLint to my project. But I am facing error while running following command

./gradlew ktlintFormat

Running with -stacktrace etc also doesn't seem to help much. Here is the error I am getting. Any help is much appreciated.

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
Anuj Garg
  • 959
  • 10
  • 12

1 Answers1

4

This was fixed in a later version of the ktlint gradle plugin. You can go down to 9.2.1 or up to 10.0.0. See this issue.

Jamie
  • 2,948
  • 4
  • 19
  • 26