Gradle: Task 'run' not found in root project
<p>I'm trying to use the task 'run' in gradle and it seems that it doesn't exist in my project.</p>

<p>When I type in terminal:</p>

<p><code>$ gradle run</code></p>

<p>I get the error message: </p>

<blockquote>
  <p>FAILURE: Build failed with an exception.</p>
  
  <p>What went wrong: Task 'run' not found in root project 'NA'.</p>
</blockquote>

<p>I also built the project again, got "BUILD SUCCESSFUL", and it still didn't help me to commit the 'run' task. </p>

<p>How can I make 'run' task be useful again? </p>