# execCommand == null!

**URL:** <https://discuss.gradle.org/t/execcommand-null/41179>\
**Category:** Help/Discuss\
**Created:** [October 12, 2021, 2:08pm UTC](https://discuss.gradle.org/t/execcommand-null/41179 "2021-10-12T14:08:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aman-Kamani](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@Aman-Kamani](https://discuss.gradle.org/u/Aman-Kamani)\
**Post date:** [October 12, 2021, 2:08pm UTC](https://discuss.gradle.org/t/execcommand-null/41179/1 "2021-10-12T14:08:16Z")

</div>

Hi,  
I have written the following simple task in my android project.

```gradle
task testing (type: Exec) {
        println workingDir
}

```

> gradlew **testing**

when I run the above command in the command prompt(Windows), it gives an error:

```gradle

> Task :testing FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':testing'.
> execCommand == null!

```

OS: Windows  
Gradle-Version: 6.7.1

I am unable to understand why I am getting this error?
