title: What is gradle wrapper and the gradlew.bat file?
body: <p>Lately I came to know the power of Gradle as a build system and as an Android developer I wanna understand it deeply.</p>
  <p><a href="https://developer.android.com/studio/build/building-cmdline" rel="nofollow noreferrer">One article</a> said the following:</p>
  <blockquote>
  <p>You can execute all the build tasks available to your Android project using <a href="https://docs.gradle.org/current/userguide/gradle_wrapper.html" rel="nofollow noreferrer">the Gradle wrapper</a> command line tool. It's available as a batch file for Windows (<code>gradlew.bat</code>) and a shell script for Linux and Mac (<code>gradlew.sh</code>), and it's accessible from the root of each project you create with Android Studio.</p>
  <p>To run a task with the wrapper, use one of the following commands:</p>
  <ul>
  <li>On Windows:
  <pre class="lang-none prettyprint-override"><code>gradlew task-name
  </code></pre>
  </li>
  </ul>
  </blockquote>
  <p>Now I have some doubts which goes as follow:</p>
  <ol>
  <li>What is Gradle Wrapper and <code>gradlew.bat</code>?</li>
  <li>If I've got Android studio installed and it is using gradle to build my apps (so gradle is already installed on my system),  do I still need to install gradle for build purpose from command line? As when i write any commend like <code>gradle</code>, <code>gradlew</code> on my command line I get error saying <code>gradlew  is not recognized as internal or external command</code> (the same error for other commands). I may be using it on wrong path, help me on what path do I need to use Gradle related command?</li>
  <li>If I need to download and install it, how and where can I find the file? And the other processes?</li>
  </ol>
  <p>I am using a Windows machine for this.</p>