title: How to run gradle tasks from specific ".gradle" file with terminal in android studio?
body: <p>I am new to writing gradle tasks.</p>
  
  <p>I have added a <code>.gradle</code> file into root of my project in this <code>gradle</code> file there are some tasks, my question is how to run these <code>tasks</code> via <code>Terminal</code> in android studio?</p>
  
  <p><a href="https://i.stack.imgur.com/6XNv7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6XNv7.png" alt="gradle-task"></a></p>
  
  <p>When i run a task with Terminal in android studio it has return following error:</p>
  
  <pre><code>Task 'testTask' not found in root project 'TestProject'.
  </code></pre>