Anuj Garg
Anuj Garg

Reputation: 979

KtLint Execution failed for task ':app:ktlintAndroidTestDebugSourceSetCheck'

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

Upvotes: 3

Views: 7551

Answers (2)

GiridharaSPK
GiridharaSPK

Reputation: 547

Updating to latest version of ktlint should be the solution to this issues for compatability

Upvotes: 0

Jamie
Jamie

Reputation: 3028

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.

Upvotes: 4

Related Questions